From ddba4a570ec604c3da4dd1ab0fe21a5fcea7bf35 Mon Sep 17 00:00:00 2001 From: Juraj Oravec Date: Fri, 17 May 2019 18:57:21 +0200 Subject: [PATCH] Fix plugin loading when Falkon is running Signed-off-by: Juraj Oravec --- autoZoomer/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoZoomer/__init__.py b/autoZoomer/__init__.py index e1aa061..d2eb61d 100644 --- a/autoZoomer/__init__.py +++ b/autoZoomer/__init__.py @@ -27,6 +27,8 @@ class AutoZoomer_Plugin(Falkon.PluginInterface, QtCore.QObject): buttons = {} def init(self, state, settingsPath): + self.manager = AutoZoomer(settingsPath) + plugins = Falkon.MainApplication.instance().plugins() plugins.mainWindowCreated.connect(self.mainWindowCreated) @@ -38,8 +40,6 @@ class AutoZoomer_Plugin(Falkon.PluginInterface, QtCore.QObject): for window in Falkon.MainApplication.instance().windows(): self.mainWindowCreated(window) - self.manager = AutoZoomer(settingsPath) - def unload(self): self.manager.saveSettings() for window in Falkon.MainApplication.instance().windows():