gtk(command_palette): filter out certain actions
parent
3b013b1174
commit
e97dfc2e19
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue