feat: QoL features to Updater, workflow trigger.

This commit is contained in:
Vxrtrauter
2026-03-11 00:07:11 +01:00
parent bf20625832
commit b77867b111
2 changed files with 6 additions and 9 deletions
+3 -5
View File
@@ -205,11 +205,9 @@ def _download_update(assets):
time.sleep(1)
sys.exit(0)
def windowCloseHelper():
QGuiApplication.quit()
class ElidedItemDelegate(QStyledItemDelegate):
def __init__(self, get_hovered_row, parent=None):
super().__init__(parent)
@@ -274,13 +272,13 @@ class MainWindow(QtWidgets.QMainWindow, QWidget):
state.version = build_info.get("version")
if state.ignore_updates is False and platform.system() == "Windows":
assets = get_updates()
assets, latest = get_updates()
if assets != None:
msg = QMessageBox()
msg.setIcon(QMessageBox.Icon.Information)
msg.setWindowTitle("Update Available")
msg.setText("A new version is available.")
msg.setInformativeText("Press Ok to download the update.")
msg.setText(f"A new version is available\n({latest})")
msg.setInformativeText("Press Ok to download.")
msg.setStandardButtons(QMessageBox.StandardButton.Ok | QMessageBox.StandardButton.Ignore)
response = msg.exec_()
if response == QMessageBox.StandardButton.Ok: