1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-31 17:12:56 +08:00

Avoid unnecessarily handling two skin changed events when making mutable skin

This commit is contained in:
Dean Herbert 2024-09-30 19:52:51 +09:00
parent 7d756d0de2
commit 16e69b08a1
No known key found for this signature in database

View File

@ -401,6 +401,10 @@ namespace osu.Game.Overlays.SkinEditor
private void skinChanged()
{
if (skins.EnsureMutableSkin())
// Another skin changed event will arrive which will complete the process.
return;
headerText.Clear();
headerText.AddParagraph(SkinEditorStrings.SkinEditor, cp => cp.Font = OsuFont.Default.With(size: 16));