Release SyncVito 1.0.8
This commit is contained in:
1 parent
a04db4ee96
commit
bb5bfda4fe
7 files changed
+268
-17
No files matched your search
@@ -114,6 +114,7 @@ class MainWindow(QMainWindow):
|
||||
self.update_retry_timer.setInterval(UPDATE_RETRY_INTERVAL_MS)
|
||||
self.update_retry_timer.timeout.connect(self._automatic_update_check)
|
||||
QTimer.singleShot(3000, self._automatic_update_check)
|
||||
QTimer.singleShot(1000, self._show_previous_update_error)
|
||||
cleanup_attempts = 6 if "--updated" in sys.argv else 1
|
||||
QTimer.singleShot(3000, lambda: self._cleanup_update_installers(cleanup_attempts))
|
||||
if "--updated" in sys.argv:
|
||||
@@ -666,6 +667,16 @@ class MainWindow(QMainWindow):
|
||||
self._append_log("Update", "Erfolg", message)
|
||||
self.tray.showMessage("SyncVito aktualisiert", message, QSystemTrayIcon.MessageIcon.Information, 5000)
|
||||
|
||||
def _show_previous_update_error(self) -> None:
|
||||
message = self.updater.service.take_install_error()
|
||||
if message:
|
||||
self._append_log("Update", "Fehler", message)
|
||||
QMessageBox.warning(
|
||||
self,
|
||||
"Update nicht abgeschlossen",
|
||||
f"{message}\n\nGestartete Version: {__version__}\nProtokolle: {self.updater.service.update_directory}",
|
||||
)
|
||||
|
||||
def _cleanup_update_installers(self, attempts_remaining: int = 1) -> None:
|
||||
_removed, pending = self.updater.service.cleanup_installers()
|
||||
if pending and attempts_remaining > 1:
|
||||
|
||||
Reference in new issue
Block a user