Add predicted_navigation for reload()
This should avoid a double-reload for 'tsh' etc.
This commit is contained in:
parent
b9d26ee268
commit
87c6644751
@ -706,6 +706,7 @@ class WebEngineTab(browsertab.AbstractTab):
|
||||
self._widget.shutdown()
|
||||
|
||||
def reload(self, *, force=False):
|
||||
self.predicted_navigation.emit(self.url())
|
||||
if force:
|
||||
action = QWebEnginePage.ReloadAndBypassCache
|
||||
else:
|
||||
|
@ -701,6 +701,7 @@ class WebKitTab(browsertab.AbstractTab):
|
||||
self._widget.shutdown()
|
||||
|
||||
def reload(self, *, force=False):
|
||||
self.predicted_navigation.emit(self.url())
|
||||
if force:
|
||||
action = QWebPage.ReloadAndBypassCache
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user