From 7b5a1f6481b8df22ffb2dd2ec713b470ffc2a980 Mon Sep 17 00:00:00 2001 From: SaracenOne Date: Tue, 12 Sep 2017 18:23:16 +0100 Subject: Add option to always show directories in filesystem dock --- editor/filesystem_dock.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'editor/filesystem_dock.cpp') diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index a66d1724a1..84e0e0e3de 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -426,8 +426,10 @@ void FileSystemDock::_update_files(bool p_keep_selection) { Ref file_thumbnail; Ref file_thumbnail_broken; + bool always_show_folders = EditorSettings::get_singleton()->get("docks/filesystem/always_show_folders"); + bool use_thumbnails = (display_mode == DISPLAY_THUMBNAILS); - bool use_folders = search_box->get_text().length() == 0 && split_mode; + bool use_folders = search_box->get_text().length() == 0 && (split_mode || always_show_folders); if (use_thumbnails) { //thumbnails -- cgit v1.2.3