pygui updated progress tasks to be self contained and leverage a title value to display runtime with more context to user

This commit is contained in:
Blake Harnden 2020-05-03 21:47:58 -07:00
parent 1dd45f4424
commit 4ec6ef25fe
5 changed files with 40 additions and 30 deletions

View file

@ -185,8 +185,10 @@ class SessionsDialog(Dialog):
self.destroy()
if self.app.core.xml_file:
self.app.core.xml_file = None
task = ProgressTask(self.app.core.join_session, args=(session_id,))
self.app.progress_task(task)
task = ProgressTask(
self.app, "Join", self.app.core.join_session, args=(session_id,)
)
task.start()
def double_click_join(self, _event: tk.Event) -> None:
item = self.tree.selection()