Lift restriction that "run" cannot be used as a callback
This commit is contained in:
parent
5dbb8b6cac
commit
d018be872a
@ -101,9 +101,8 @@ class Module(SettingsBase):
|
||||
elif our_method:
|
||||
cb(self, *args)
|
||||
elif hasattr(self, cb):
|
||||
if cb is not "run":
|
||||
self.__log_button_event(button, cb, args, "Member callback")
|
||||
getattr(self, cb)(*args)
|
||||
self.__log_button_event(button, cb, args, "Member callback")
|
||||
getattr(self, cb)(*args)
|
||||
else:
|
||||
self.__log_button_event(button, cb, args, "External command")
|
||||
if hasattr(self, "data"):
|
||||
|
Loading…
Reference in New Issue
Block a user