Use lambda function in signals
Signed-off-by: Juraj Oravec <sgd.orava@gmail.com>
This commit is contained in:
parent
4a3a038528
commit
03ae9ccccf
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user