mirror of https://github.com/ppy/osu
Fix code styling
This commit is contained in:
parent
6c05329144
commit
3a90aa0b9b
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue