From 3a70ca4e08e489b502123e52ccc86228f1021e7a Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Sun, 10 Dec 2023 03:49:24 -0500 Subject: [PATCH] menubar selected fix --- assets | 2 +- .../ui/debug/charting/handlers/ChartEditorToolboxHandler.hx | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/assets b/assets index b5a90d795..d29187aea 160000 --- a/assets +++ b/assets @@ -1 +1 @@ -Subproject commit b5a90d79524c2e1d770b447bf88bd6ebbe65bd85 +Subproject commit d29187aeafbb560ec62b15c52fff8c0281912431 diff --git a/source/funkin/ui/debug/charting/handlers/ChartEditorToolboxHandler.hx b/source/funkin/ui/debug/charting/handlers/ChartEditorToolboxHandler.hx index 28716bd14..2876ce2fa 100644 --- a/source/funkin/ui/debug/charting/handlers/ChartEditorToolboxHandler.hx +++ b/source/funkin/ui/debug/charting/handlers/ChartEditorToolboxHandler.hx @@ -435,6 +435,10 @@ class ChartEditorToolboxHandler if (toolbox == null) return null; + toolbox.onDialogClosed = function(_) { + state.menubarItemToggleToolboxPlaytestProperties.selected = false; + } + var checkboxPracticeMode:Null = toolbox.findComponent('practiceModeCheckbox', CheckBox); if (checkboxPracticeMode == null) throw 'ChartEditorToolboxHandler.buildToolboxPlaytestPropertiesLayout() - Could not find practiceModeCheckbox component.';