Remove search_displayed initialization in subclasses
We set this in BrowserTab anyways, and the value in WebKitTab was wrong.
This commit is contained in:
parent
4b5e528d05
commit
905032924a
@ -124,7 +124,6 @@ class WebEngineSearch(browsertab.AbstractSearch):
|
|||||||
def __init__(self, parent=None):
|
def __init__(self, parent=None):
|
||||||
super().__init__(parent)
|
super().__init__(parent)
|
||||||
self._flags = QWebEnginePage.FindFlags(0)
|
self._flags = QWebEnginePage.FindFlags(0)
|
||||||
self.search_displayed = False
|
|
||||||
|
|
||||||
def _find(self, text, flags, callback, caller):
|
def _find(self, text, flags, callback, caller):
|
||||||
"""Call findText on the widget."""
|
"""Call findText on the widget."""
|
||||||
|
@ -103,7 +103,6 @@ class WebKitSearch(browsertab.AbstractSearch):
|
|||||||
def __init__(self, parent=None):
|
def __init__(self, parent=None):
|
||||||
super().__init__(parent)
|
super().__init__(parent)
|
||||||
self._flags = QWebPage.FindFlags(0)
|
self._flags = QWebPage.FindFlags(0)
|
||||||
self.search_displayed = True
|
|
||||||
|
|
||||||
def _call_cb(self, callback, found, text, flags, caller):
|
def _call_cb(self, callback, found, text, flags, caller):
|
||||||
"""Call the given callback if it's non-None.
|
"""Call the given callback if it's non-None.
|
||||||
|
Loading…
Reference in New Issue
Block a user