mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 20:14:14 +02:00
[fix][ui] initialization dialog hangs when there is no task to wait for
This commit is contained in:
@@ -26,6 +26,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
- i18n
|
- i18n
|
||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
|
- initialization dialog hangs when there is no task to wait for [#112](https://github.com/vinifmor/bauh/issues/112)
|
||||||
- not caching data of repository packages with unknown repository names
|
- not caching data of repository packages with unknown repository names
|
||||||
|
|
||||||
## [0.9.3] 2020-05-12
|
## [0.9.3] 2020-05-12
|
||||||
|
|||||||
@@ -58,8 +58,8 @@ class Prepare(QThread, TaskManager):
|
|||||||
if not ok:
|
if not ok:
|
||||||
QCoreApplication.exit(1)
|
QCoreApplication.exit(1)
|
||||||
|
|
||||||
self.signal_started.emit()
|
|
||||||
self.manager.prepare(self, root_pwd, None)
|
self.manager.prepare(self, root_pwd, None)
|
||||||
|
self.signal_started.emit()
|
||||||
|
|
||||||
def update_progress(self, task_id: str, progress: float, substatus: str):
|
def update_progress(self, task_id: str, progress: float, substatus: str):
|
||||||
self.signal_update.emit(task_id, progress, substatus)
|
self.signal_update.emit(task_id, progress, substatus)
|
||||||
@@ -85,9 +85,8 @@ class CheckFinished(QThread):
|
|||||||
def run(self):
|
def run(self):
|
||||||
time.sleep(3)
|
time.sleep(3)
|
||||||
while True:
|
while True:
|
||||||
if self.total is not None and self.finished is not None:
|
if self.total == self.finished:
|
||||||
if self.total == self.finished:
|
break
|
||||||
break
|
|
||||||
|
|
||||||
time.sleep(0.01)
|
time.sleep(0.01)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user