diff options
author | Andreas Kling <kling@serenityos.org> | 2021-07-27 17:12:28 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-27 18:27:49 +0200 |
commit | 49b968338178ecc57b5ecc284802c57231e10ee3 (patch) | |
tree | d4c97bcb8cf901bc8b268b04ef28f572d0139db3 /Userland | |
parent | 4486e5b26d23b3bfafd3978c70df68ad9e2c3063 (diff) | |
download | serenity-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.cpp | 1 |
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(); |