Fix auto_accept_quit option to work
auto_accept_quit value is set first properly with GLOBAL_DEF("application/auto_accept_quit", true) in main.cpp after that it's reset to true in SceneTree:init() whatever value was.
This commit is contained in:
parent
ea89c56bfb
commit
edefaa768b
@ -460,7 +460,6 @@ void SceneTree::input_event(const InputEvent &p_event) {
|
|||||||
void SceneTree::init() {
|
void SceneTree::init() {
|
||||||
|
|
||||||
//_quit=false;
|
//_quit=false;
|
||||||
accept_quit = true;
|
|
||||||
initialized = true;
|
initialized = true;
|
||||||
input_handled = false;
|
input_handled = false;
|
||||||
|
|
||||||
@ -1625,6 +1624,7 @@ SceneTree::SceneTree() {
|
|||||||
|
|
||||||
singleton = this;
|
singleton = this;
|
||||||
_quit = false;
|
_quit = false;
|
||||||
|
accept_quit = true;
|
||||||
initialized = false;
|
initialized = false;
|
||||||
#ifdef TOOLS_ENABLED
|
#ifdef TOOLS_ENABLED
|
||||||
editor_hint = false;
|
editor_hint = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user