mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-11 10:56:39 +00:00
fix #1148, saving execute commands, tuples can't be assigned to stupid me
This commit is contained in:
parent
7999bd1e8c
commit
9ad59d5f48
@ -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…
x
Reference in New Issue
Block a user