mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 07:34:58 +00:00
LibGUI+FileManager: Add setting for showing/hiding dotfiles
GUI::FileSystemModel can now be told to display (or not display) files whose name start with a dot (other than . and ..)
This commit is contained in:
parent
ad57a2f18b
commit
9710c9742c
3 changed files with 18 additions and 1 deletions
|
@ -655,6 +655,10 @@ int run_in_windowed_mode(RefPtr<Core::ConfigFile> config, String initial_locatio
|
|||
view_menu.add_action(*view_as_icons_action);
|
||||
view_menu.add_action(*view_as_table_action);
|
||||
view_menu.add_action(*view_as_columns_action);
|
||||
view_menu.add_separator();
|
||||
view_menu.add_action(GUI::Action::create_checkable("Show dotfiles", { Mod_Ctrl, Key_H }, [&](auto& action) {
|
||||
directory_view.model().set_should_show_dotfiles(action.is_checked());
|
||||
}));
|
||||
|
||||
auto& go_menu = menubar->add_menu("Go");
|
||||
go_menu.add_action(go_back_action);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue