Fix lint
This commit is contained in:
parent
a6ce188e0d
commit
f7074b80d0
@ -827,7 +827,7 @@ class AbstractTab(QWidget):
|
||||
if predict:
|
||||
self.predicted_navigation.emit(url)
|
||||
|
||||
def openurl(self, url):
|
||||
def openurl(self, url, *, predict=True):
|
||||
raise NotImplementedError
|
||||
|
||||
def reload(self, *, force=False):
|
||||
|
@ -671,8 +671,8 @@ class WebKitTab(browsertab.AbstractTab):
|
||||
settings = widget.settings()
|
||||
settings.setAttribute(QWebSettings.PrivateBrowsingEnabled, True)
|
||||
|
||||
def openurl(self, url):
|
||||
self._openurl_prepare(url)
|
||||
def openurl(self, url, *, predict=True):
|
||||
self._openurl_prepare(url, predict=predict)
|
||||
self._widget.openurl(url)
|
||||
|
||||
def url(self, requested=False):
|
||||
|
@ -536,7 +536,8 @@ class TabbedBrowser(QWidget):
|
||||
else:
|
||||
self.widget.setTabIcon(i, QIcon())
|
||||
if config.val.tabs.tabs_are_windows:
|
||||
self.widget.window().setWindowIcon(self.default_window_icon)
|
||||
window = self.widget.window()
|
||||
window.setWindowIcon(self.default_window_icon)
|
||||
|
||||
@pyqtSlot()
|
||||
def on_load_started(self, tab):
|
||||
|
Loading…
Reference in New Issue
Block a user