From e97dfc2e196fc5cedf754f433a48d9e8f4889df6 Mon Sep 17 00:00:00 2001 From: Leah Amelia Chen Date: Wed, 23 Apr 2025 16:03:09 +0800 Subject: [PATCH] gtk(command_palette): filter out certain actions --- src/apprt/gtk/CommandPalette.zig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/apprt/gtk/CommandPalette.zig b/src/apprt/gtk/CommandPalette.zig index ce6d035a5..b72eaa8d2 100644 --- a/src/apprt/gtk/CommandPalette.zig +++ b/src/apprt/gtk/CommandPalette.zig @@ -102,6 +102,16 @@ pub fn updateConfig(self: *CommandPalette, config: *const configpkg.Config) !voi // TODO: Allow user-configured palette entries for (inputpkg.command.defaults) |command| { + // Filter out actions that are not implemented + // or don't make sense for GTK + switch (command.action) { + .close_all_windows, + .toggle_secure_input, + => continue, + + else => {}, + } + const cmd = try Command.new( self.arena.allocator(), command,