Fix editor stuck dimmed because of unsaved script

This commit is contained in:
kobewi 2021-09-29 17:06:12 +02:00
parent 69b2f1dcc6
commit 0fa8d3431a

View file

@ -662,7 +662,7 @@ void ScriptEditor::_queue_close_tabs() {
// Maybe there are unsaved changes.
if (se->is_unsaved()) {
_ask_close_current_unsaved_tab(se);
erase_tab_confirm->connect(SceneStringNames::get_singleton()->visibility_changed, this, "_queue_close_tabs", varray(), CONNECT_ONESHOT);
erase_tab_confirm->connect(SceneStringNames::get_singleton()->visibility_changed, this, "_queue_close_tabs", varray(), CONNECT_ONESHOT | CONNECT_DEFERRED);
break;
}
}