From f85f2f03d97fc1332275f088ddce2b4056f0ded2 Mon Sep 17 00:00:00 2001 From: Hyper_ <40342021+NotHyper-474@users.noreply.github.com> Date: Thu, 11 Sep 2025 23:36:54 -0300 Subject: [PATCH] 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. --- source/funkin/ui/debug/charting/ChartEditorState.hx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/funkin/ui/debug/charting/ChartEditorState.hx b/source/funkin/ui/debug/charting/ChartEditorState.hx index ba097ba11..c38a506df 100644 --- a/source/funkin/ui/debug/charting/ChartEditorState.hx +++ b/source/funkin/ui/debug/charting/ChartEditorState.hx @@ -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;