1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 04:07:25 +08:00

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
No known key found for this signature in database

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