mirror of https://github.com/ppy/osu
Rename confirmation dialog class to mention `revert` not `reset`
This commit is contained in:
parent
55467fcbe3
commit
26ef7c2637
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue