From e03f47cb7c04070e235b22768901dafc49ce4eb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sun, 12 Nov 2023 16:21:49 +0100 Subject: [PATCH] Remove EditorFileDialog warning when skipping project directories We might need better UX to handle this in EditorFileDialog, showing the directories as greyed out with a tooltip, but for now this silences a warning that users have no control over. We keep the warning only in the initial project scan. --- editor/editor_file_system.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editor/editor_file_system.cpp b/editor/editor_file_system.cpp index b6d1b92f9f68..e81f71e0e09e 100644 --- a/editor/editor_file_system.cpp +++ b/editor/editor_file_system.cpp @@ -2369,7 +2369,9 @@ bool EditorFileSystem::_should_skip_directory(const String &p_path) { if (FileAccess::exists(p_path.path_join("project.godot"))) { // Skip if another project inside this. - WARN_PRINT_ONCE(vformat("Detected another project.godot at %s. The folder will be ignored.", p_path)); + if (EditorFileSystem::get_singleton()->first_scan) { + WARN_PRINT_ONCE(vformat("Detected another project.godot at %s. The folder will be ignored.", p_path)); + } return true; }