diff options
author | Hendrik Brucker <hendrik.brucker@mail.de> | 2022-02-03 01:21:52 +0100 |
---|---|---|
committer | Hendrik Brucker <hendrik.brucker@mail.de> | 2022-02-12 12:06:51 +0100 |
commit | 77fb65debff5df719709a7f0f5b1047ab13e46af (patch) | |
tree | dc84cb265af5c77c23fc627e1503f74b54e1f895 /main | |
parent | b99fad040d77719f5852e644a85a1488b65d7811 (diff) |
Use EditorFileDialog instead of FileDialog in the project manager
Diffstat (limited to 'main')
-rw-r--r-- | main/main.cpp | 9 | ||||
-rw-r--r-- | main/main.h | 1 |
2 files changed, 1 insertions, 9 deletions
diff --git a/main/main.cpp b/main/main.cpp index 1efe3ccd94..bfe560fa31 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -182,13 +182,6 @@ bool profile_gpu = false; /* Helper methods */ -// Used by Mono module, should likely be registered in Engine singleton instead -// FIXME: This is also not 100% accurate, `project_manager` is only true when it was requested, -// but not if e.g. we fail to load and project and fallback to the manager. -bool Main::is_project_manager() { - return project_manager; -} - bool Main::is_cmdline_tool() { return cmdline_tool; } @@ -934,7 +927,6 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph editor = true; } else if (I->get() == "-p" || I->get() == "--project-manager") { // starts project manager - project_manager = true; } else if (I->get() == "--debug-server") { if (I->next()) { @@ -2548,6 +2540,7 @@ 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); diff --git a/main/main.h b/main/main.h index 9728d8a5aa..cec31545c7 100644 --- a/main/main.h +++ b/main/main.h @@ -45,7 +45,6 @@ class Main { static bool agile_input_event_flushing; public: - static bool is_project_manager(); static bool is_cmdline_tool(); static int test_entrypoint(int argc, char *argv[], bool &tests_need_run); static Error setup(const char *execpath, int argc, char *argv[], bool p_second_phase = true); |