Fix DummyUserscriptRunner.
This commit is contained in:
parent
fc3a3ea8c6
commit
b8727d338f
@ -271,7 +271,7 @@ class _WindowsUserscriptRunner(_BaseUserscriptRunner):
|
||||
self._run_process(cmd, *args, env=env, verbose=verbose)
|
||||
|
||||
|
||||
class _DummyUserscriptRunner:
|
||||
class _DummyUserscriptRunner(QObject):
|
||||
|
||||
"""Simple dummy runner which displays an error when using userscripts.
|
||||
|
||||
@ -284,6 +284,10 @@ class _DummyUserscriptRunner:
|
||||
|
||||
finished = pyqtSignal()
|
||||
|
||||
def __init__(self, win_id, parent=None):
|
||||
# pylint: disable=unused-argument
|
||||
super().__init__(parent)
|
||||
|
||||
def run(self, cmd, *args, env=None, verbose=False):
|
||||
"""Print an error as userscripts are not supported."""
|
||||
# pylint: disable=unused-argument,unused-variable
|
||||
|
Loading…
Reference in New Issue
Block a user