1
0

qt: rm some usages of get_parent_main_window

instead, pass around the main window or config (whichever is actually needed)

fixes #6342
This commit is contained in:
SomberNight
2020-12-20 13:26:35 +01:00
parent 08c3d2ccd0
commit 096d853482
12 changed files with 89 additions and 35 deletions

View File

@@ -238,7 +238,7 @@ def run_hook(name, *args):
class BasePlugin(Logger):
def __init__(self, parent, config, name):
def __init__(self, parent, config: 'SimpleConfig', name):
self.parent = parent # type: Plugins # The plugins object
self.name = name
self.config = config