启动自动更新线程 :param cls:
(cls, parent=None)
| 305 | |
| 306 | @classmethod |
| 307 | def start(cls, parent=None): |
| 308 | """启动自动更新线程 |
| 309 | :param cls: |
| 310 | """ |
| 311 | cls._thread = QThread(parent) |
| 312 | cls._worker = UpgradeThread() |
| 313 | cls._worker.moveToThread(cls._thread) |
| 314 | cls._thread.started.connect(cls._worker.run) |
| 315 | cls._thread.finished.connect(cls._worker.deleteLater) |
| 316 | cls._thread.start() |
| 317 | AppLog.info('update thread started') |
| 318 | |
| 319 | def unzip(self, file): |
| 320 | # 进行解压 |
nothing calls this directly
no test coverage detected