Clear components sidebar unconditionally on every target change

Fixes the working layer dropdown lingering after exiting from a
skinnable screen to a non-skinnable one.
This commit is contained in:
Bartłomiej Dach
2023-03-04 14:09:58 +01:00
parent 9d4bb2ecf7
commit 60cdd3c070

View File

@ -324,6 +324,7 @@ namespace osu.Game.Overlays.SkinEditor
foreach (var toolbox in componentsSidebar.OfType<SkinComponentToolbox>())
toolbox.Expire();
componentsSidebar.Clear();
SelectedComponents.Clear();
Debug.Assert(content != null);