You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-21 14:57:09 +00:00
Restore hidden folder behavior for project manager
(cherry picked from commit 38fed916e7)
This commit is contained in:
committed by
Rémi Verschelde
parent
a5e58f102d
commit
5f05cb8696
@@ -39,6 +39,7 @@
|
|||||||
#include "editor_resource_preview.h"
|
#include "editor_resource_preview.h"
|
||||||
#include "editor_scale.h"
|
#include "editor_scale.h"
|
||||||
#include "editor_settings.h"
|
#include "editor_settings.h"
|
||||||
|
#include "main/main.h"
|
||||||
#include "scene/gui/center_container.h"
|
#include "scene/gui/center_container.h"
|
||||||
#include "scene/gui/label.h"
|
#include "scene/gui/label.h"
|
||||||
#include "scene/gui/margin_container.h"
|
#include "scene/gui/margin_container.h"
|
||||||
@@ -768,7 +769,7 @@ void EditorFileDialog::update_file_list() {
|
|||||||
}
|
}
|
||||||
} else if (!dir_access->current_is_hidden()) {
|
} else if (!dir_access->current_is_hidden()) {
|
||||||
String full_path = cdir == "res://" ? item : dir_access->get_current_dir() + "/" + item;
|
String full_path = cdir == "res://" ? item : dir_access->get_current_dir() + "/" + item;
|
||||||
if (dir_access->current_is_dir() && !EditorFileSystem::_should_skip_directory(full_path)) {
|
if (dir_access->current_is_dir() && (!EditorFileSystem::_should_skip_directory(full_path) || Main::is_project_manager())) {
|
||||||
dirs.push_back(item);
|
dirs.push_back(item);
|
||||||
} else {
|
} else {
|
||||||
files.push_back(item);
|
files.push_back(item);
|
||||||
|
|||||||
Reference in New Issue
Block a user