mirror of
https://github.com/ppy/osu.git
synced 2025-02-07 22:12:57 +08:00
Avoid unnecessarily handling two skin changed events when making mutable skin
This commit is contained in:
parent
7d756d0de2
commit
16e69b08a1
@ -401,6 +401,10 @@ namespace osu.Game.Overlays.SkinEditor
|
|||||||
|
|
||||||
private void skinChanged()
|
private void skinChanged()
|
||||||
{
|
{
|
||||||
|
if (skins.EnsureMutableSkin())
|
||||||
|
// Another skin changed event will arrive which will complete the process.
|
||||||
|
return;
|
||||||
|
|
||||||
headerText.Clear();
|
headerText.Clear();
|
||||||
|
|
||||||
headerText.AddParagraph(SkinEditorStrings.SkinEditor, cp => cp.Font = OsuFont.Default.With(size: 16));
|
headerText.AddParagraph(SkinEditorStrings.SkinEditor, cp => cp.Font = OsuFont.Default.With(size: 16));
|
||||||
|
Loading…
Reference in New Issue
Block a user