mirror of
https://github.com/netinvent/npbackup.git
synced 2025-10-11 14:06:30 +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)
|
window["repo_uri_cloud_hint"].Update(visible=False)
|
||||||
|
|
||||||
# Closing this window takes ages
|
# Closing this window takes ages
|
||||||
|
window.hide()
|
||||||
quick_close_simplegui_window(window)
|
quick_close_simplegui_window(window)
|
||||||
del window
|
del window
|
||||||
return full_config
|
return full_config
|
||||||
|
|
|
@ -400,7 +400,6 @@ def quick_close_simplegui_window(window: sg.Window) -> None:
|
||||||
"""
|
"""
|
||||||
if window:
|
if window:
|
||||||
try:
|
try:
|
||||||
window.hide()
|
|
||||||
window.close()
|
window.close()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logger.error(f"Error closing SimpleGUI window: {exc}")
|
logger.error(f"Error closing SimpleGUI window: {exc}")
|
||||||
|
|
Loading…
Add table
Reference in a new issue