another one liner god damn it

Fixes a crash when there's some previously focused text fields,
and the user tries to exit via the confirmation dialog.
Before a state switch HaxeUI tries to reset the tooltip manager and
remove all components, which in this case causes it to refocus a text field,
which tries to access a destroyed camera to retrieve the bounds.
Doing this ensures there's no text fields for it to do that.
This commit is contained in:
Hyper_
2025-09-15 01:41:38 +08:00
committed by Hundrec
parent 146a6cde68
commit f85f2f03d9
@@ -5710,6 +5710,8 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
return;
}
this.hideAllToolboxes();
stopWelcomeMusic();
// TODO: PR Flixel to make onComplete nullable.
if (audioInstTrack != null) audioInstTrack.onComplete = null;