Skip to content

Commit

Permalink
GUI: Improve ux as per #115
Browse files Browse the repository at this point in the history
  • Loading branch information
deajan committed Jan 30, 2025
1 parent f77269f commit 7848887
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion npbackup/gui/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 7848887

Please sign in to comment.