pygui: fixed exception from bad check when double clicking in sessions dialog
This commit is contained in:
parent
e7a93e7fd6
commit
04f7bc561b
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ class SessionsDialog(Dialog):
|
||||||
|
|
||||||
def double_click_join(self, _event: tk.Event) -> None:
|
def double_click_join(self, _event: tk.Event) -> None:
|
||||||
item = self.tree.selection()
|
item = self.tree.selection()
|
||||||
if item is None:
|
if not item:
|
||||||
return
|
return
|
||||||
session_id = int(self.tree.item(item, "text"))
|
session_id = int(self.tree.item(item, "text"))
|
||||||
self.join_session(session_id)
|
self.join_session(session_id)
|
||||||
|
|
Loading…
Add table
Reference in a new issue