fix(updater,ci): headless tests and immediate app shutdown
- 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:
9
main.py
9
main.py
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user