Implement #300
This commit is contained in:
parent
a9462aa862
commit
a7583a9786
@ -102,7 +102,9 @@ class Module(SettingsBase):
|
|||||||
getattr(self, cb)(*args)
|
getattr(self, cb)(*args)
|
||||||
else:
|
else:
|
||||||
self.__log_button_event(button, cb, args, "External command")
|
self.__log_button_event(button, cb, args, "External command")
|
||||||
execute(cb, detach=True)
|
if hasattr(self, "data"):
|
||||||
|
args = [arg.format(**self.data) for arg in args]
|
||||||
|
execute(cb + " " + " ".join(args), detach=True)
|
||||||
|
|
||||||
# Notify status handler
|
# Notify status handler
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user