Fix updates and startup delays

This commit is contained in:
joel
2026-07-20 17:56:19 +02:00
parent 240779052f
commit 6f8074ff43
3 changed files with 67 additions and 28 deletions
+19
View File
@@ -841,6 +841,25 @@ class App(ctk.CTk):
if not IS_MACOS:
w.after(200, lambda: w.grab_set())
def check_updates(self, manual=False):
import threading
def _do_check():
try:
has_upd, ver, url = check_for_updates()
if has_upd:
self.after(0, lambda: self._prompt_update(ver, url))
elif manual:
self.after(0, lambda: messagebox.showinfo("Updates", "Du bist auf der neuesten Version!"))
except Exception as e:
if manual:
self.after(0, lambda: messagebox.showerror("Fehler", f"Fehler bei Update-Prüfung:\n{e}"))
if manual:
self.after(30, self._activate)
threading.Thread(target=_do_check, daemon=True).start()
def _save_s(self, wg, win):
try:
th = int(wg["threads"].get())