Compare commits

..

1 Commits

Author SHA1 Message Date
Vxrtrauter 65f7c04936 refactor: clean up unused imports and improve code organization 2025-11-15 00:16:47 +01:00
3 changed files with 15 additions and 12 deletions
+1
View File
@@ -76,6 +76,7 @@ class MainWindow(QtWidgets.QMainWindow, QWidget):
if state.ignore_updates is False: if state.ignore_updates is False:
if platform.system() == "Windows": if platform.system() == "Windows":
result = check_for_updates() result = check_for_updates()
if result != (None, None):
assets, latest_version = result assets, latest_version = result
if assets: if assets:
+1 -1
View File
@@ -12,7 +12,7 @@ class AppState(QObject):
self.post_urls: List[str] = [] self.post_urls: List[str] = []
self.post_author: List[str] = [] self.post_author: List[str] = []
self.downloads: List[str] = [] self.downloads: List[str] = []
self.version: str self.version: str = "dev"
self._image_path: str = "" self._image_path: str = ""
self.ignore_updates: bool = False self.ignore_updates: bool = False
self.debug: bool = False self.debug: bool = False
+2
View File
@@ -30,6 +30,8 @@ def check_for_updates():
for asset in assets: for asset in assets:
print(f" - {asset['name']}: {asset['browser_download_url']}") print(f" - {asset['name']}: {asset['browser_download_url']}")
return assets, latest_version return assets, latest_version
else:
return None, None
else: else:
if state.debug: if state.debug:
print("Already up-to-date.") print("Already up-to-date.")