Skip to content

Commit

Permalink
Avoid unnecessarily handling two skin changed events when making muta…
Browse files Browse the repository at this point in the history
…ble skin
  • Loading branch information
peppy committed Sep 30, 2024
1 parent 7d756d0 commit 16e69b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions osu.Game/Overlays/SkinEditor/SkinEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,10 @@ void requestPlacement(Type type)

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));
Expand Down

0 comments on commit 16e69b0

Please sign in to comment.