summaryrefslogtreecommitdiff
path: root/Userland/DevTools
diff options
context:
space:
mode:
authorMarco Cutecchia <marco.cutecchia@outlook.it>2021-10-28 23:14:15 +0200
committerAndreas Kling <kling@serenityos.org>2021-10-29 22:40:11 +0200
commit3428e2a76c66864634e5385b1d9169fb5b2c2e0e (patch)
treea5d93f2976690b5953df6390e8a67cf389bfecf6 /Userland/DevTools
parentef62118c8b1707a4835035ebd04b5891bda9ec13 (diff)
downloadserenity-3428e2a76c66864634e5385b1d9169fb5b2c2e0e.zip
HackStudio: Add 'Show Dotfiles' option
Diffstat (limited to 'Userland/DevTools')
-rw-r--r--Userland/DevTools/HackStudio/HackStudioWidget.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/DevTools/HackStudio/HackStudioWidget.cpp b/Userland/DevTools/HackStudio/HackStudioWidget.cpp
index e13daace78..6426f4f744 100644
--- a/Userland/DevTools/HackStudio/HackStudioWidget.cpp
+++ b/Userland/DevTools/HackStudio/HackStudioWidget.cpp
@@ -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);