Restore hidden folder behavior for project manager
(cherry picked from commit 38fed916e7
)
This commit is contained in:
parent
a5e58f102d
commit
5f05cb8696
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue