make ResetConfirmDialog properly utilise its parent's logic

Adjust name of `DeleteAction` to `DangerousAction`
This commit is contained in:
mk56-spn
2023-03-05 20:57:26 +01:00
parent 3bff415909
commit 908651cc11
11 changed files with 13 additions and 28 deletions

View File

@ -17,7 +17,7 @@ namespace osu.Game.Overlays.Dialog
/// <summary>
/// The action which performs the deletion.
/// </summary>
protected Action? DeleteAction { get; set; }
protected Action? DangerousAction { get; set; }
protected DangerousActionDialog()
{
@ -30,7 +30,7 @@ namespace osu.Game.Overlays.Dialog
new PopupDialogDangerousButton
{
Text = DeleteConfirmationDialogStrings.Confirm,
Action = () => DeleteAction?.Invoke()
Action = () => DangerousAction?.Invoke()
},
new PopupDialogCancelButton
{