From c26dfa38d1e561e2595ef884e8fc5b6742a714bb Mon Sep 17 00:00:00 2001 From: Vitali Graf Date: Sun, 12 Apr 2026 12:31:59 +0200 Subject: [PATCH] fix: root.destroy() erst nach Fehlerbehandlung aufrufen --- whisper_local/tray/_download_progress.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/whisper_local/tray/_download_progress.py b/whisper_local/tray/_download_progress.py index d129ccb..1ff4cff 100644 --- a/whisper_local/tray/_download_progress.py +++ b/whisper_local/tray/_download_progress.py @@ -121,10 +121,11 @@ def load_model_with_progress( root.after(50, poll) root.mainloop() - root.destroy() if error[0] is not None: + root.destroy() messagebox.showerror("Fehler beim Modell-Download", str(error[0])) sys.exit(1) + root.destroy() return result[0]