diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-02-12 21:55:11 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-02-12 21:55:11 +0200 |
commit | 9739a2038aeabbe8abaddd558c57b36e15a353e6 (patch) | |
tree | 9dc0e2f4504eccfaaef46f569b5772d3f5d4b034 /main | |
parent | d3a6b6daaab4c8dfb7bdf35cc2fe2145ae6c22a1 (diff) |
Fix Project Manager crash on exit.
Fix editor settings loading / saving by Project Manager.
Diffstat (limited to 'main')
-rw-r--r-- | main/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/main/main.cpp b/main/main.cpp index bfe560fa31..7cbafe37a3 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1212,6 +1212,10 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph // If we didn't find a project, we fall back to the project manager. project_manager = !found_project && !cmdline_tool; } + + if (project_manager) { + Engine::get_singleton()->set_project_manager_hint(true); + } #endif GLOBAL_DEF("debug/file_logging/enable_file_logging", false); @@ -2540,7 +2544,6 @@ bool Main::start() { #ifdef TOOLS_ENABLED if (project_manager) { Engine::get_singleton()->set_editor_hint(true); - Engine::get_singleton()->set_project_manager_hint(true); ProjectManager *pmanager = memnew(ProjectManager); ProgressDialog *progress_dialog = memnew(ProgressDialog); pmanager->add_child(progress_dialog); |