Prevent unwanted script editor input on game crash
Fixes #6530.
(cherry picked from commit 853d1ce9f3
)
This commit is contained in:
parent
887b1de1db
commit
58daf901f9
|
@ -2310,6 +2310,7 @@ void ScriptEditor::apply_scripts() const {
|
||||||
void ScriptEditor::_editor_play() {
|
void ScriptEditor::_editor_play() {
|
||||||
|
|
||||||
debugger->start();
|
debugger->start();
|
||||||
|
debug_menu->get_popup()->grab_focus();
|
||||||
debug_menu->get_popup()->set_item_disabled( debug_menu->get_popup()->get_item_index(DEBUG_NEXT), true );
|
debug_menu->get_popup()->set_item_disabled( debug_menu->get_popup()->get_item_index(DEBUG_NEXT), true );
|
||||||
debug_menu->get_popup()->set_item_disabled( debug_menu->get_popup()->get_item_index(DEBUG_STEP), true );
|
debug_menu->get_popup()->set_item_disabled( debug_menu->get_popup()->get_item_index(DEBUG_STEP), true );
|
||||||
debug_menu->get_popup()->set_item_disabled( debug_menu->get_popup()->get_item_index(DEBUG_BREAK), false );
|
debug_menu->get_popup()->set_item_disabled( debug_menu->get_popup()->get_item_index(DEBUG_BREAK), false );
|
||||||
|
|
Loading…
Reference in New Issue