mirror of
https://github.com/ankitects/anki.git
synced 2025-11-10 22:57:11 -05:00
use in-memory cache for webengine
no need to persist things to disk, as we have a local copy in most cases anyway
This commit is contained in:
parent
f104044a09
commit
a172af11a1
1 changed files with 2 additions and 0 deletions
|
|
@ -74,6 +74,8 @@ class AnkiWebView(QWebEngineView):
|
||||||
|
|
||||||
self._loadFinishedCB = None
|
self._loadFinishedCB = None
|
||||||
self.setPage(self._page)
|
self.setPage(self._page)
|
||||||
|
|
||||||
|
self._page.profile().setHttpCacheType(QWebEngineProfile.MemoryHttpCache)
|
||||||
self.resetHandlers()
|
self.resetHandlers()
|
||||||
self.allowDrops = False
|
self.allowDrops = False
|
||||||
self.setCanFocus(canFocus)
|
self.setCanFocus(canFocus)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue