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():