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

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)