From 7dc28e836c98083f4c72fcc188044a9a51b2e943 Mon Sep 17 00:00:00 2001 From: deajan Date: Fri, 2 May 2025 10:52:22 +0200 Subject: [PATCH] GUI: Make status window always come to front --- npbackup/gui/helpers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/npbackup/gui/helpers.py b/npbackup/gui/helpers.py index 64b9481..3b0c5ab 100644 --- a/npbackup/gui/helpers.py +++ b/npbackup/gui/helpers.py @@ -255,7 +255,8 @@ def gui_thread_runner( ) # Finalize the window event, _ = progress_window.read(timeout=0.01) - progress_window.bring_to_front() + # window.bring_to_front() does not work, so we need to force focus on it + progress_window.TKroot.focus_force() read_stdout_queue = __stdout read_stderr_queue = True