Fixes filesystem display mode not updating at startup

This commit is contained in:
groud 2018-09-21 09:42:41 +02:00
parent 8e4b18a721
commit 77a6a467b3

View file

@ -314,10 +314,11 @@ void FileSystemDock::_notification(int p_what) {
button_tree->connect("pressed", this, "_go_to_tree", varray(), CONNECT_DEFERRED); button_tree->connect("pressed", this, "_go_to_tree", varray(), CONNECT_DEFERRED);
current_path->connect("text_entered", this, "navigate_to_path"); current_path->connect("text_entered", this, "navigate_to_path");
_update_display_mode(); display_mode_setting = DisplayModeSetting(int(EditorSettings::get_singleton()->get("docks/filesystem/display_mode")));
always_show_folders = bool(EditorSettings::get_singleton()->get("docks/filesystem/always_show_folders")); always_show_folders = bool(EditorSettings::get_singleton()->get("docks/filesystem/always_show_folders"));
_update_display_mode();
if (EditorFileSystem::get_singleton()->is_scanning()) { if (EditorFileSystem::get_singleton()->is_scanning()) {
_set_scanning_mode(); _set_scanning_mode();
} else { } else {