From 6be8a835843862c885873f822954d36f8779e72f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 10 Sep 2018 14:53:31 +0200 Subject: [PATCH] Make sure project manager gets editor hint set Previous fix in e8e06b2 worked in most cases but not if you run e.g. 'godot -', where the '-' argument would mean that 'project_manager' is false and yet that's what will be opened eventually. (cherry picked from commits e8e06b2c9a83b88bc9532f92ba9c97309ce2651c and c0df3b147e59199fa3d7743f89c167a440daa070) --- main/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/main/main.cpp b/main/main.cpp index 4a82c3a8a30..56ac5403986 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1703,6 +1703,7 @@ bool Main::start() { #ifdef TOOLS_ENABLED if (project_manager || (script == "" && test == "" && game_path == "" && !editor)) { + Engine::get_singleton()->set_editor_hint(true); ProjectManager *pmanager = memnew(ProjectManager); ProgressDialog *progress_dialog = memnew(ProgressDialog); pmanager->add_child(progress_dialog);