Rename confirmation dialog class to mention `revert` not `reset`

This commit is contained in:
Dean Herbert 2023-03-07 18:01:13 +09:00
parent 55467fcbe3
commit 26ef7c2637
1 changed files with 3 additions and 3 deletions

View File

@ -153,7 +153,7 @@ private void load()
Items = new[]
{
new EditorMenuItem(Web.CommonStrings.ButtonsSave, MenuItemType.Standard, () => Save()),
new EditorMenuItem(CommonStrings.RevertToDefault, MenuItemType.Destructive, () => dialogOverlay?.Push(new ResetConfirmDialog(revert))),
new EditorMenuItem(CommonStrings.RevertToDefault, MenuItemType.Destructive, () => dialogOverlay?.Push(new RevertConfirmDialog(revert))),
new EditorMenuItemSpacer(),
new EditorMenuItem(CommonStrings.Exit, MenuItemType.Standard, () => skinEditorOverlay?.Hide()),
},
@ -630,9 +630,9 @@ public SkinEditorToast(LocalisableString value, string skinDisplayName)
}
}
public partial class ResetConfirmDialog : DangerousActionDialog
public partial class RevertConfirmDialog : DangerousActionDialog
{
public ResetConfirmDialog(Action revert)
public RevertConfirmDialog(Action revert)
{
HeaderText = SkinEditorStrings.RevertToDefaultDescription;
BodyText = SkinEditorStrings.ResetDialogue;