From ed7534a6aa34b12f2c7ec6eb159b7def29d0282c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Louren=C3=A7o?= Date: Sat, 2 Mar 2019 23:12:02 +0000 Subject: [PATCH] Fix grid view button icon not showing on filesystem dock. --- editor/editor_node.cpp | 1 - editor/filesystem_dock.cpp | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index b36afaef880..07dfcaa917e 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -5659,7 +5659,6 @@ EditorNode::EditorNode() { filesystem_dock = memnew(FileSystemDock(this)); filesystem_dock->connect("open", this, "open_request"); - filesystem_dock->set_file_list_display_mode(FileSystemDock::FILE_LIST_DISPLAY_LIST); filesystem_dock->connect("instance", this, "_instance_request"); filesystem_dock->connect("display_mode_changed", this, "_save_docks"); diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index 9bd6063a714..66deb42c118 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -302,6 +302,8 @@ void FileSystemDock::_notification(int p_what) { always_show_folders = bool(EditorSettings::get_singleton()->get("docks/filesystem/always_show_folders")); + set_file_list_display_mode(FileSystemDock::FILE_LIST_DISPLAY_LIST); + _update_display_mode(); if (EditorFileSystem::get_singleton()->is_scanning()) {