mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -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
(cherry picked from commit a74fd74631
)
This commit is contained in:
parent
234fa0c2f4
commit
fa1d6eae84
1 changed files with 1 additions and 0 deletions
|
@ -399,6 +399,7 @@ class AnkiWebView(QWebEngineView):
|
|||
# signal from the first one is received
|
||||
if kind != AnkiWebViewKind.DEFAULT:
|
||||
self.setPage(AnkiWebPage(self._onBridgeCmd, kind, self))
|
||||
self.page().setBackgroundColor(theme_manager.qcolor(colors.CANVAS))
|
||||
|
||||
def page(self) -> AnkiWebPage:
|
||||
return cast(AnkiWebPage, super().page())
|
||||
|
|
Loading…
Reference in a new issue