Skip to content

Commit 9a72e36

Browse files
committed
fix: add selected_workspace as int(key)
1 parent 87885fc commit 9a72e36

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -872,13 +872,14 @@ def unhandled_input(self, key):
872872
return
873873

874874
# Workspace is selected
875-
if int(key) - 1 == self.workspaces_line.selected:
875+
selected_workspace = int(key)
876+
if selected_workspace - 1 == self.workspaces_line.selected:
876877
return
877-
self.workspaces_line.select(int(key))
878+
self.workspaces_line.select(selected_workspace)
878879

879880
# Stop rtm to switch workspace
880881
self.real_time_task.cancel()
881-
return self.switch_to_workspace(int(key))
882+
return self.switch_to_workspace(selected_workspace)
882883
elif key == keymap['set_snooze']:
883884
return self.open_set_snooze()
884885

0 commit comments

Comments
 (0)