def refresh(cls): cls.initialized = False cls.init() # FIXME: REPLACE WITH EnumerateHelper!!! LauncherSignal.broadcast("device_list_updated")
def on_done(): # FIXME: these should be removed soon LauncherSettings.set("last_scan", str(time.time())) LauncherSettings.set("__config_refresh", str(time.time())) # this must be called from main, since callbacks are broadcast # when settings are changed LauncherSignal.broadcast("scan_done") LauncherConfig.update_kickstart()
def _update_thread_function(cls): if System.windows: platform = "windows" elif System.macos: platform = "macosx" elif System.linux: platform = "linux" else: platform = "other" url = f"https://fs-uae.net/{cls.series()}/latest-{platform}" r = requests.get(url) r.raise_for_status() version_str = r.text.strip() print("Latest version available:", version_str) print("Current version:", VERSION) result = Version.compare(version_str, VERSION) print("Update check result: ", result) if result > 0 and version_str != "9.9.9": web_url = "https://fs-uae.net/{0}/download/".format(cls.series()) LauncherSignal.broadcast("update_available", version_str, web_url) # FIXME: Thread safety... # FIXME: Use above signal instead LauncherSettings.set("__update_available", version_str)
def __closed(self): LauncherSignal.broadcast("settings_updated")
def refresh(cls): cls.initialized = False cls.init() LauncherSignal.broadcast("device_list_updated")