mirror of
https://github.com/netinvent/npbackup.git
synced 2025-10-09 13:11:58 +08:00
!fixup GUI: Workaround to make config window close faster
This commit is contained in:
parent
46dadc4d0b
commit
ce8fbb7bf3
2 changed files with 1 additions and 1 deletions
|
@ -2973,6 +2973,7 @@ Google Cloud storage: GOOGLE_PROJECT_ID GOOGLE_APPLICATION_CREDENTIALS\n\
|
|||
window["repo_uri_cloud_hint"].Update(visible=False)
|
||||
|
||||
# Closing this window takes ages
|
||||
window.hide()
|
||||
quick_close_simplegui_window(window)
|
||||
del window
|
||||
return full_config
|
||||
|
|
|
@ -400,7 +400,6 @@ def quick_close_simplegui_window(window: sg.Window) -> None:
|
|||
"""
|
||||
if window:
|
||||
try:
|
||||
window.hide()
|
||||
window.close()
|
||||
except Exception as exc:
|
||||
logger.error(f"Error closing SimpleGUI window: {exc}")
|
||||
|
|
Loading…
Add table
Reference in a new issue