Fix updater return type bug
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user