mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -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))
|
f.life.clicked.connect(lambda: self.changePeriod(2))
|
||||||
maybeHideClose(self.form.buttonBox)
|
maybeHideClose(self.form.buttonBox)
|
||||||
addCloseShortcut(self)
|
addCloseShortcut(self)
|
||||||
self.refresh()
|
|
||||||
self.show()
|
self.show()
|
||||||
|
self.refresh()
|
||||||
self.activateWindow()
|
self.activateWindow()
|
||||||
|
|
||||||
def reject(self):
|
def reject(self):
|
||||||
|
@ -78,7 +78,7 @@ class DeckStats(QDialog):
|
||||||
self.refresh()
|
self.refresh()
|
||||||
|
|
||||||
def refresh(self):
|
def refresh(self):
|
||||||
self.mw.progress.start(immediate=True)
|
self.mw.progress.start(immediate=True, parent=self)
|
||||||
stats = self.mw.col.stats()
|
stats = self.mw.col.stats()
|
||||||
stats.wholeCollection = self.wholeCollection
|
stats.wholeCollection = self.wholeCollection
|
||||||
self.report = stats.report(type=self.period)
|
self.report = stats.report(type=self.period)
|
||||||
|
|
Loading…
Reference in a new issue