fix race condition in webview startup on windows

use _setHtml so that _domDone is set to false
This commit is contained in:
Damien Elmes 2019-04-10 17:31:55 +10:00
parent 91178d3d58
commit 380d59f775

View file

@ -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)