mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
fix race condition in webview startup on windows
use _setHtml so that _domDone is set to false
This commit is contained in:
parent
91178d3d58
commit
380d59f775
1 changed files with 2 additions and 2 deletions
|
@ -609,8 +609,8 @@ title="%s" %s>%s</button>''' % (
|
||||||
|
|
||||||
# force webengine processes to load before cwd is changed
|
# force webengine processes to load before cwd is changed
|
||||||
if isWin:
|
if isWin:
|
||||||
self.web._page.setHtml("")
|
for o in self.web, self.bottomWeb:
|
||||||
self.bottomWeb._page.setHtml("")
|
o._setHtml("")
|
||||||
|
|
||||||
def closeAllWindows(self, onsuccess):
|
def closeAllWindows(self, onsuccess):
|
||||||
aqt.dialogs.closeAll(onsuccess)
|
aqt.dialogs.closeAll(onsuccess)
|
||||||
|
|
Loading…
Reference in a new issue