mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 02:42:54 +08:00
Fix skin editor not exiting correctly when using the menu
Closes https://github.com/ppy/osu/issues/17489.
This commit is contained in:
parent
8c5594b3ea
commit
b5834dabdb
@ -42,6 +42,9 @@ namespace osu.Game.Skinning.Editor
|
|||||||
[Resolved]
|
[Resolved]
|
||||||
private OsuColour colours { get; set; }
|
private OsuColour colours { get; set; }
|
||||||
|
|
||||||
|
[Resolved(canBeNull: true)]
|
||||||
|
private SkinEditorOverlay skinEditorOverlay { get; set; }
|
||||||
|
|
||||||
[Cached]
|
[Cached]
|
||||||
private readonly OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Blue);
|
private readonly OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Blue);
|
||||||
|
|
||||||
@ -107,7 +110,7 @@ namespace osu.Game.Skinning.Editor
|
|||||||
new EditorMenuItem("Save", MenuItemType.Standard, Save),
|
new EditorMenuItem("Save", MenuItemType.Standard, Save),
|
||||||
new EditorMenuItem("Revert to default", MenuItemType.Destructive, revert),
|
new EditorMenuItem("Revert to default", MenuItemType.Destructive, revert),
|
||||||
new EditorMenuItemSpacer(),
|
new EditorMenuItemSpacer(),
|
||||||
new EditorMenuItem("Exit", MenuItemType.Standard, Hide),
|
new EditorMenuItem("Exit", MenuItemType.Standard, () => skinEditorOverlay?.Hide()),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user