mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04: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.setPage(self._page)
|
||||
|
||||
self._page.profile().setHttpCacheType(QWebEngineProfile.MemoryHttpCache)
|
||||
self.resetHandlers()
|
||||
self.allowDrops = False
|
||||
self.setCanFocus(canFocus)
|
||||
|
|
Loading…
Reference in a new issue