1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-10-02 07:28:53 +00:00

Merge pull request #461 from FunkinCrew/bugfix/debuggercheckbox-crash

Prevent a crash trying to open a non-existant debugger checkbox.
This commit is contained in:
Cameron Taylor 2024-04-04 05:30:41 -04:00 committed by GitHub
commit ec47ee4285

View file

@ -308,16 +308,6 @@ class ChartEditorToolboxHandler
state.playtestBotPlayMode = checkboxBotPlay.selected;
};
var checkboxDebugger:Null<CheckBox> = toolbox.findComponent('playtestDebuggerCheckbox', CheckBox);
if (checkboxDebugger == null) throw 'ChartEditorToolboxHandler.buildToolboxPlaytestPropertiesLayout() - Could not find playtestDebuggerCheckbox component.';
state.enabledDebuggerPopup = checkboxDebugger.selected;
checkboxDebugger.onClick = _ -> {
state.enabledDebuggerPopup = checkboxDebugger.selected;
};
var checkboxSongScripts:Null<CheckBox> = toolbox.findComponent('playtestSongScriptsCheckbox', CheckBox);
if (checkboxSongScripts == null)