fix(updater,ci): headless tests and immediate app shutdown
Some checks failed
Desktop CI / tests (push) Failing after 14s
Desktop Release / release (push) Failing after 15s

- stub PySide6 in test_updater_gui to run on linux runner without libGL

- close main app immediately after launching updater, without blocking OK dialog
This commit is contained in:
2026-02-15 22:01:51 +03:00
parent 965d09d47c
commit 813dafd6b8
2 changed files with 69 additions and 6 deletions

View File

@@ -1212,12 +1212,9 @@ class VkChatManager(QMainWindow):
version=latest_version,
)
self._log_event("auto_update", f"Update {latest_version} started from {download_url}")
QMessageBox.information(
self,
"Обновление запущено",
"Обновление скачано. Открылось окно обновления.",
)
QApplication.instance().quit()
self.status_label.setText("Статус: обновление запущено, закрываю приложение...")
self.close()
QTimer.singleShot(0, QApplication.instance().quit)
return True
except Exception as e:
self._log_event("auto_update_failed", str(e), level="ERROR")