mirror of
https://github.com/netinvent/npbackup.git
synced 2024-09-21 07:16:16 +08:00
Remove threaded window.close() since we're not slow anymore
This commit is contained in:
parent
2229cec1d7
commit
e5941b3d5d
|
@ -310,19 +310,7 @@ def ls_window(repo_config: dict, snapshot_id: str) -> bool:
|
|||
continue
|
||||
restore_window(repo_config, snapshot_id, values["-TREE-"])
|
||||
|
||||
# Closing a big sg.TreeData is really slow
|
||||
# This is a little trichery lesson
|
||||
# Still we should open a case at PySimpleGUI to know why closing a sg.TreeData window is painfully slow # TODO
|
||||
window.hide()
|
||||
|
||||
@threaded
|
||||
def _close_win():
|
||||
"""
|
||||
Since closing a sg.Treedata takes alot of time, let's thread it into background
|
||||
"""
|
||||
window.close
|
||||
|
||||
_close_win()
|
||||
window.close()
|
||||
return True
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue