diff --git a/osu.Game.Tournament/Screens/Editors/Components/TournamentClearAllDialog.cs b/osu.Game.Tournament/Screens/Editors/Components/TournamentClearAllDialog.cs index 050549fe76..1dc7c8231d 100644 --- a/osu.Game.Tournament/Screens/Editors/Components/TournamentClearAllDialog.cs +++ b/osu.Game.Tournament/Screens/Editors/Components/TournamentClearAllDialog.cs @@ -1,7 +1,7 @@ // Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. -using System.Collections; +using System; using osu.Framework.Graphics.Sprites; using osu.Game.Overlays.Dialog; @@ -9,11 +9,11 @@ namespace osu.Game.Tournament.Screens.Editors.Components { public partial class TournamentClearAllDialog : DangerousActionDialog { - public TournamentClearAllDialog(IList storage) + public TournamentClearAllDialog(Action action) { HeaderText = @"Clear all?"; Icon = FontAwesome.Solid.Trash; - DangerousAction = storage.Clear; + DangerousAction = action; } } } diff --git a/osu.Game.Tournament/Screens/Editors/TournamentEditorScreen.cs b/osu.Game.Tournament/Screens/Editors/TournamentEditorScreen.cs index cd6127f1ce..bc0d25a238 100644 --- a/osu.Game.Tournament/Screens/Editors/TournamentEditorScreen.cs +++ b/osu.Game.Tournament/Screens/Editors/TournamentEditorScreen.cs @@ -88,7 +88,7 @@ namespace osu.Game.Tournament.Screens.Editors Text = "Clear all", Action = () => { - dialogOverlay?.Push(new TournamentClearAllDialog(Storage)); + dialogOverlay?.Push(new TournamentClearAllDialog(() => Storage.Clear())); } }, }