mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 07:28:39 +00:00
backport the fix for #1148 from master
This commit is contained in:
parent
ec15c3aadb
commit
5438a39af2
1 changed files with 2 additions and 3 deletions
|
@ -127,8 +127,7 @@ class Core(CorePluginBase):
|
||||||
|
|
||||||
@export
|
@export
|
||||||
def save_command(self, command_id, event, cmd):
|
def save_command(self, command_id, event, cmd):
|
||||||
for command in self.config["commands"]:
|
for i, command in enumerate(self.config["commands"]):
|
||||||
if command[EXECUTE_ID] == command_id:
|
if command[EXECUTE_ID] == command_id:
|
||||||
command[EXECUTE_EVENT] = event
|
self.config["commands"][i] = (command_id, event, cmd)
|
||||||
command[EXECUTE_COMMAND] = cmd
|
|
||||||
break
|
break
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue