From 89b4e5cffbfa5df0815e46e3b8f816baee4228a8 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Fri, 26 Nov 2021 18:18:45 +0900 Subject: [PATCH] Rename mass deletion confirmation dialog --- .../Settings/Sections/Maintenance/GeneralSettings.cs | 8 ++++---- ...lBeatmapsDialog.cs => MassDeleteConfirmationDialog.cs} | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) rename osu.Game/Overlays/Settings/Sections/Maintenance/{DeleteAllBeatmapsDialog.cs => MassDeleteConfirmationDialog.cs} (87%) diff --git a/osu.Game/Overlays/Settings/Sections/Maintenance/GeneralSettings.cs b/osu.Game/Overlays/Settings/Sections/Maintenance/GeneralSettings.cs index 5bc89ec77c..acdf9cdea6 100644 --- a/osu.Game/Overlays/Settings/Sections/Maintenance/GeneralSettings.cs +++ b/osu.Game/Overlays/Settings/Sections/Maintenance/GeneralSettings.cs @@ -51,7 +51,7 @@ namespace osu.Game.Overlays.Settings.Sections.Maintenance Text = MaintenanceSettingsStrings.DeleteAllBeatmaps, Action = () => { - dialogOverlay?.Push(new DeleteAllBeatmapsDialog(() => + dialogOverlay?.Push(new MassDeleteConfirmationDialog(() => { deleteBeatmapsButton.Enabled.Value = false; Task.Run(() => beatmaps.Delete(beatmaps.GetAllUsableBeatmapSets())).ContinueWith(t => Schedule(() => deleteBeatmapsButton.Enabled.Value = true)); @@ -77,7 +77,7 @@ namespace osu.Game.Overlays.Settings.Sections.Maintenance Text = MaintenanceSettingsStrings.DeleteAllScores, Action = () => { - dialogOverlay?.Push(new DeleteAllBeatmapsDialog(() => + dialogOverlay?.Push(new MassDeleteConfirmationDialog(() => { deleteScoresButton.Enabled.Value = false; Task.Run(() => scores.Delete(scores.GetAllUsableScores())).ContinueWith(t => Schedule(() => deleteScoresButton.Enabled.Value = true)); @@ -103,7 +103,7 @@ namespace osu.Game.Overlays.Settings.Sections.Maintenance Text = MaintenanceSettingsStrings.DeleteAllSkins, Action = () => { - dialogOverlay?.Push(new DeleteAllBeatmapsDialog(() => + dialogOverlay?.Push(new MassDeleteConfirmationDialog(() => { deleteSkinsButton.Enabled.Value = false; Task.Run(() => skins.Delete(skins.GetAllUserSkins())).ContinueWith(t => Schedule(() => deleteSkinsButton.Enabled.Value = true)); @@ -131,7 +131,7 @@ namespace osu.Game.Overlays.Settings.Sections.Maintenance Text = MaintenanceSettingsStrings.DeleteAllCollections, Action = () => { - dialogOverlay?.Push(new DeleteAllBeatmapsDialog(collectionManager.DeleteAll)); + dialogOverlay?.Push(new MassDeleteConfirmationDialog(collectionManager.DeleteAll)); } }); } diff --git a/osu.Game/Overlays/Settings/Sections/Maintenance/DeleteAllBeatmapsDialog.cs b/osu.Game/Overlays/Settings/Sections/Maintenance/MassDeleteConfirmationDialog.cs similarity index 87% rename from osu.Game/Overlays/Settings/Sections/Maintenance/DeleteAllBeatmapsDialog.cs rename to osu.Game/Overlays/Settings/Sections/Maintenance/MassDeleteConfirmationDialog.cs index a124501454..6380232bbb 100644 --- a/osu.Game/Overlays/Settings/Sections/Maintenance/DeleteAllBeatmapsDialog.cs +++ b/osu.Game/Overlays/Settings/Sections/Maintenance/MassDeleteConfirmationDialog.cs @@ -7,9 +7,9 @@ using osu.Game.Overlays.Dialog; namespace osu.Game.Overlays.Settings.Sections.Maintenance { - public class DeleteAllBeatmapsDialog : PopupDialog + public class MassDeleteConfirmationDialog : PopupDialog { - public DeleteAllBeatmapsDialog(Action deleteAction) + public MassDeleteConfirmationDialog(Action deleteAction) { BodyText = "Everything?";