diff --git a/Userland/Libraries/LibGUI/CommandPalette.cpp b/Userland/Libraries/LibGUI/CommandPalette.cpp index 4bf7c9c5db..7f9bf8de60 100644 --- a/Userland/Libraries/LibGUI/CommandPalette.cpp +++ b/Userland/Libraries/LibGUI/CommandPalette.cpp @@ -232,14 +232,14 @@ void CommandPalette::collect_actions(GUI::Window& parent_window) auto collect_action_children = [&](Core::Object& action_parent) { action_parent.for_each_child_of_type([&](GUI::Action& action) { - if (action.is_enabled()) + if (action.is_enabled() && action.is_visible()) actions.set(action); return IterationDecision::Continue; }); }; Function should_show_action = [&](GUI::Action* action) { - return action && action->is_enabled() && action->shortcut() != Shortcut(Mod_Ctrl | Mod_Shift, Key_A); + return action && action->is_enabled() && action->is_visible() && action->shortcut() != Shortcut(Mod_Ctrl | Mod_Shift, Key_A); }; Function collect_actions_from_menu = [&](Menu& menu) {