Decorate slots properly

This commit is contained in:
Florian Bruhin 2018-06-26 10:40:13 +02:00
parent ea4ee6f00b
commit 8519aa940f

View File

@ -880,6 +880,7 @@ class _WebEngineScripts(QObject):
)
self._inject_early_js('stylesheet', js_code, subframes=True)
@pyqtSlot(QUrl)
def _inject_greasemonkey_scripts_for_url(self, url):
matching_scripts = self._greasemonkey.scripts_for(url)
self._inject_greasemonkey_scripts(
@ -889,6 +890,7 @@ class _WebEngineScripts(QObject):
self._inject_greasemonkey_scripts(
matching_scripts.idle, QWebEngineScript.Deferred, False)
@pyqtSlot()
def _inject_all_greasemonkey_scripts(self):
scripts = self._greasemonkey.all_scripts()
self._inject_greasemonkey_scripts(scripts)