Use lambda function in signals

Signed-off-by: Juraj Oravec <sgd.orava@gmail.com>
This commit is contained in:
Juraj Oravec 2020-01-12 14:59:18 +01:00
parent 4a3a038528
commit 03ae9ccccf
No known key found for this signature in database
GPG Key ID: 63ACB65056BC8D07
2 changed files with 4 additions and 4 deletions

View File

@ -77,10 +77,9 @@ class AutoZoomer_Plugin(Falkon.PluginInterface, QtCore.QObject):
del self.actions[window]
def onWebPageCreated(self, page):
def onLoadFinished(ok):
self.manager.onLoadFinished(page)
page.loadFinished.connect(onLoadFinished)
page.loadFinished.connect(
lambda ok: self.manager.onLoadFinished(page)
)
def populateExtensionsMenu(self, menu):
self.manager.onPopulateExtensionsMenu(menu)

View File

@ -23,6 +23,7 @@ from autoZoomer.settingsDialog import SettingsDialog
from autoZoomer.str2bool import str2bool
from autoZoomer.i18n import i18n
class AutoZoomer(QtCore.QObject):
menuAction = None
data = None