diff --git a/npbackup/gui/helpers.py b/npbackup/gui/helpers.py index 09c45ca..14e705b 100644 --- a/npbackup/gui/helpers.py +++ b/npbackup/gui/helpers.py @@ -7,7 +7,7 @@ __author__ = "Orsiris de Jong" __copyright__ = "Copyright (C) 2023-2025 NetInvent" __license__ = "GPL-3.0-only" -__build__ = "2024103001" +__build__ = "2025013001" from typing import Tuple, Union @@ -335,7 +335,12 @@ def _update_gui_from_cache(_stdout_cache: str = None, _stderr_cache: str = None) _update_gui_from_cache(stdout_cache, stderr_cache) + progress_window["--CANCEL--"].Update(disabled=True) progress_window["--EXIT--"].Update(disabled=False) + if stderr_has_messages: + progress_window["--EXIT--"].update(button_color=(TXT_COLOR_LDR, "red")) + else: + progress_window["--EXIT--"].update(button_color=(TXT_COLOR_LDR, "green")) # Keep the window open until user has done something progress_window["-LOADER-ANIMATION-"].Update(visible=False) if (not __autoclose or stderr_has_messages) and not __ignore_errors: