1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 11:12:54 +08:00

Fix skin selection not clearing on exit to non-skinnable screen

This commit is contained in:
Bartłomiej Dach 2023-03-04 13:18:34 +01:00
parent 3dd3b5e77a
commit 15409b9c15
No known key found for this signature in database

View File

@ -323,13 +323,13 @@ namespace osu.Game.Overlays.SkinEditor
foreach (var toolbox in componentsSidebar.OfType<SkinComponentToolbox>())
toolbox.Expire();
SelectedComponents.Clear();
if (target.NewValue == null)
return;
Debug.Assert(content != null);
SelectedComponents.Clear();
var skinComponentsContainer = getTarget(target.NewValue);
if (skinComponentsContainer == null)