mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
fix black flash on stats load on osx/qt5.11
This commit is contained in:
parent
0c1c7a1ca3
commit
68a398f8d6
1 changed files with 2 additions and 2 deletions
|
@ -38,8 +38,8 @@ class DeckStats(QDialog):
|
|||
f.life.clicked.connect(lambda: self.changePeriod(2))
|
||||
maybeHideClose(self.form.buttonBox)
|
||||
addCloseShortcut(self)
|
||||
self.refresh()
|
||||
self.show()
|
||||
self.refresh()
|
||||
self.activateWindow()
|
||||
|
||||
def reject(self):
|
||||
|
@ -78,7 +78,7 @@ class DeckStats(QDialog):
|
|||
self.refresh()
|
||||
|
||||
def refresh(self):
|
||||
self.mw.progress.start(immediate=True)
|
||||
self.mw.progress.start(immediate=True, parent=self)
|
||||
stats = self.mw.col.stats()
|
||||
stats.wholeCollection = self.wholeCollection
|
||||
self.report = stats.report(type=self.period)
|
||||
|
|
Loading…
Reference in a new issue