Remove threaded window.close() since we're not slow anymore

This commit is contained in:
Orsiris de Jong 2024-01-04 00:21:11 +01:00
parent 2229cec1d7
commit e5941b3d5d

View file

@ -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