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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user