Skip to content

Commit f9c1f7a

Browse files
KoloInDaCribHundrec
authored andcommitted
clear up styleSheet be4 entering
1 parent 3d3e2bd commit f9c1f7a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/funkin/ui/debug/DebugMenuSubState.hx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ class DebugMenuSubState extends MusicBeatSubState
7171
#end
7272
onMenuChange(items.members[0]);
7373
FlxG.camera.focusOn(new FlxPoint(camFocusPoint.x, camFocusPoint.y + 500));
74+
75+
// Remove the "user" stylesheet to prevent components using incorrect style data when entering an editor.
76+
haxe.ui.Toolkit.styleSheet.clear("user");
7477
}
7578

7679
function onMenuChange(selected:TextMenuItem)

0 commit comments

Comments
 (0)