FileManager: Make "show dotfiles" affect the tree view as well

Previously this only affected the main directory view.
This commit is contained in:
Andreas Kling 2021-07-27 17:12:28 +02:00
parent 4486e5b26d
commit 49b9683381
Notes: sideshowbarker 2024-07-18 08:02:39 +09:00

View file

@ -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();