Replaced direction switch, direclty handling next and previous now

pull/9899/head
Max Bretschneider 2025-10-24 15:32:43 +02:00 committed by Mitchell Hashimoto
parent b344c978d0
commit 6b8a7e1dd1
1 changed files with 2 additions and 4 deletions

View File

@ -5394,10 +5394,8 @@ pub fn performBindingAction(self: *Surface, action: input.Binding.Action) !bool
.{ .surface = self },
.goto_window,
switch (direction) {
inline else => |tag| @field(
apprt.action.GotoWindow,
@tagName(tag),
),
.next => apprt.action.GotoWindow.next,
.previous => apprt.action.GotoWindow.previous,
},
),