mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
Fix flashing when opening the stats, empty cards or find dupes dialogs (#3928)
* add AnkiWebView subclasses for stats, empty cards and find dupes ui * update ui files to use subclassed webviews instead * remove superfluous calls to AnkiWebView.set_kind * revert impl * set page background colour after setPage in AnkiWebView.set_kind
This commit is contained in:
parent
1a68c9f5d5
commit
a74fd74631
1 changed files with 1 additions and 0 deletions
|
@ -399,6 +399,7 @@ class AnkiWebView(QWebEngineView):
|
||||||
# signal from the first one is received
|
# signal from the first one is received
|
||||||
if kind != AnkiWebViewKind.DEFAULT:
|
if kind != AnkiWebViewKind.DEFAULT:
|
||||||
self.setPage(AnkiWebPage(self._onBridgeCmd, kind, self))
|
self.setPage(AnkiWebPage(self._onBridgeCmd, kind, self))
|
||||||
|
self.page().setBackgroundColor(theme_manager.qcolor(colors.CANVAS))
|
||||||
|
|
||||||
def page(self) -> AnkiWebPage:
|
def page(self) -> AnkiWebPage:
|
||||||
return cast(AnkiWebPage, super().page())
|
return cast(AnkiWebPage, super().page())
|
||||||
|
|
Loading…
Reference in a new issue