summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-07-27 17:12:28 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-27 18:27:49 +0200
commit49b968338178ecc57b5ecc284802c57231e10ee3 (patch)
treed4c97bcb8cf901bc8b268b04ef28f572d0139db3 /Userland
parent4486e5b26d23b3bfafd3978c70df68ad9e2c3063 (diff)
downloadserenity-49b968338178ecc57b5ecc284802c57231e10ee3.zip
FileManager: Make "show dotfiles" affect the tree view as well
Previously this only affected the main directory view.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Applications/FileManager/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Applications/FileManager/main.cpp b/Userland/Applications/FileManager/main.cpp
index ba94846359..c1fe99dca4 100644
--- a/Userland/Applications/FileManager/main.cpp
+++ b/Userland/Applications/FileManager/main.cpp
@@ -865,6 +865,7 @@ int run_in_windowed_mode(RefPtr<Core::ConfigFile> config, String initial_locatio
auto action_show_dotfiles = GUI::Action::create_checkable("&Show Dotfiles", { Mod_Ctrl, Key_H }, [&](auto& action) {
directory_view.set_should_show_dotfiles(action.is_checked());
+ directories_model->set_should_show_dotfiles(action.is_checked());
refresh_tree_view();
config->write_bool_entry("DirectoryView", "ShowDotFiles", action.is_checked());
config->sync();