mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
HackStudio: Add 'Show Dotfiles' option
This commit is contained in:
parent
ef62118c8b
commit
3428e2a76c
Notes:
sideshowbarker
2024-07-18 01:45:24 +09:00
Author: https://github.com/mrkct Commit: https://github.com/SerenityOS/serenity/commit/3428e2a76c6 Pull-request: https://github.com/SerenityOS/serenity/pull/10690 Reviewed-by: https://github.com/BenWiederhake ✅
1 changed files with 4 additions and 0 deletions
|
@ -1162,10 +1162,14 @@ void HackStudioWidget::create_view_menu(GUI::Window& window)
|
|||
auto open_locator_action = GUI::Action::create("Open &Locator", { Mod_Ctrl, Key_K }, [this](auto&) {
|
||||
m_locator->open();
|
||||
});
|
||||
auto show_dotfiles_action = GUI::Action::create_checkable("S&how Dotfiles", { Mod_Ctrl, Key_H }, [&](auto& checked) {
|
||||
project().model().set_should_show_dotfiles(checked.is_checked());
|
||||
});
|
||||
|
||||
auto& view_menu = window.add_menu("&View");
|
||||
view_menu.add_action(hide_action_tabs_action);
|
||||
view_menu.add_action(open_locator_action);
|
||||
view_menu.add_action(show_dotfiles_action);
|
||||
view_menu.add_separator();
|
||||
|
||||
m_wrapping_mode_actions.set_exclusive(true);
|
||||
|
|
Loading…
Add table
Reference in a new issue