Skip to content

Commit

Permalink
fix: add selected_workspace as int(key)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriploc committed Sep 10, 2018
1 parent 87885fc commit 9a72e36
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app.py
Expand Up @@ -872,13 +872,14 @@ def unhandled_input(self, key):
return

# Workspace is selected
if int(key) - 1 == self.workspaces_line.selected:
selected_workspace = int(key)
if selected_workspace - 1 == self.workspaces_line.selected:
return
self.workspaces_line.select(int(key))
self.workspaces_line.select(selected_workspace)

# Stop rtm to switch workspace
self.real_time_task.cancel()
return self.switch_to_workspace(int(key))
return self.switch_to_workspace(selected_workspace)
elif key == keymap['set_snooze']:
return self.open_set_snooze()

Expand Down

0 comments on commit 9a72e36

Please sign in to comment.