GUI: Avoid hiding unintitialized window

This commit is contained in:
deajan 2025-03-14 14:43:37 +01:00
parent d96f2c0f70
commit a051996f12

View file

@ -733,10 +733,9 @@ def _main_gui(viewer_mode: bool):
if action == "--CANCEL--":
break
if action == "--NEW-CONFIG--":
with HideWindow(window):
full_config = config_gui(
npbackup.configuration.get_default_config(), config_file
)
full_config = config_gui(
npbackup.configuration.get_default_config(), config_file
)
if config_file:
logger.info(f"Using configuration file {config_file}")
try: