Skip to content

Commit 34319c7

Browse files
Merge pull request #96 from yuriploc/master
fix: selected_workspace is not defined
2 parents a076161 + 9a72e36 commit 34319c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,10 +872,11 @@ def unhandled_input(self, key):
872872
return
873873

874874
# Workspace is selected
875+
selected_workspace = int(key)
875876
if selected_workspace - 1 == self.workspaces_line.selected:
876877
return
877-
878878
self.workspaces_line.select(selected_workspace)
879+
879880
# Stop rtm to switch workspace
880881
self.real_time_task.cancel()
881882
return self.switch_to_workspace(selected_workspace)

0 commit comments

Comments
 (0)