fix: root.destroy() erst nach Fehlerbehandlung aufrufen

This commit is contained in:
2026-04-12 12:31:59 +02:00
parent 3067499c88
commit c26dfa38d1
+2 -1
View File
@@ -121,10 +121,11 @@ def load_model_with_progress(
root.after(50, poll) root.after(50, poll)
root.mainloop() root.mainloop()
root.destroy()
if error[0] is not None: if error[0] is not None:
root.destroy()
messagebox.showerror("Fehler beim Modell-Download", str(error[0])) messagebox.showerror("Fehler beim Modell-Download", str(error[0]))
sys.exit(1) sys.exit(1)
root.destroy()
return result[0] return result[0]