Fix updater return type bug

This commit is contained in:
joel
2026-07-20 18:03:38 +02:00
parent 6f8074ff43
commit 46429663d9
2 changed files with 6 additions and 31 deletions
-19
View File
@@ -841,25 +841,6 @@ 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())