menubar selected fix

This commit is contained in:
Cameron Taylor 2023-12-10 03:49:24 -05:00
parent 8cec180353
commit 3a70ca4e08
2 changed files with 5 additions and 1 deletions

2
assets

@ -1 +1 @@
Subproject commit b5a90d79524c2e1d770b447bf88bd6ebbe65bd85 Subproject commit d29187aeafbb560ec62b15c52fff8c0281912431

View file

@ -435,6 +435,10 @@ class ChartEditorToolboxHandler
if (toolbox == null) return null; if (toolbox == null) return null;
toolbox.onDialogClosed = function(_) {
state.menubarItemToggleToolboxPlaytestProperties.selected = false;
}
var checkboxPracticeMode:Null<CheckBox> = toolbox.findComponent('practiceModeCheckbox', CheckBox); var checkboxPracticeMode:Null<CheckBox> = toolbox.findComponent('practiceModeCheckbox', CheckBox);
if (checkboxPracticeMode == null) throw 'ChartEditorToolboxHandler.buildToolboxPlaytestPropertiesLayout() - Could not find practiceModeCheckbox component.'; if (checkboxPracticeMode == null) throw 'ChartEditorToolboxHandler.buildToolboxPlaytestPropertiesLayout() - Could not find practiceModeCheckbox component.';