Fix code styling

This commit is contained in:
Dan Balasescu 2022-06-08 17:57:59 +09:00
parent 6c05329144
commit 3a90aa0b9b
2 changed files with 6 additions and 3 deletions

View File

@ -232,8 +232,7 @@ protected override void LoadComplete()
private void delete()
{
if (dialogOverlay != null)
dialogOverlay.Push(new SkinDeleteDialog(currentSkin.Value));
dialogOverlay?.Push(new SkinDeleteDialog(currentSkin.Value));
}
}
}

View File

@ -32,7 +32,11 @@ public SkinDeleteDialog(Skin skin)
new PopupDialogDangerousButton
{
Text = @"Yes. Totally. Delete it.",
Action = () => {
Action = () =>
{
if (manager == null)
return;
manager.Delete(s);
manager.CurrentSkinInfo.Value = DefaultSkin.CreateInfo().ToLiveUnmanaged();
},