[feat] Script refactor; decouple timer component from script lifetime. Resolve #1715
This commit is contained in:
parent
cd579fb649
commit
b5195a6e96
29 changed files with 1136 additions and 1266 deletions
|
|
@ -155,12 +155,12 @@ class GlobalScriptContainer(Container):
|
|||
new_script.start()
|
||||
return new_script
|
||||
|
||||
if (
|
||||
(found.interval != interval)
|
||||
if ((found.interval != interval)
|
||||
or (found.start_delay != start_delay)
|
||||
or (found.repeats != repeats)
|
||||
):
|
||||
found.restart(interval=interval, start_delay=start_delay, repeats=repeats)
|
||||
# the setup changed
|
||||
found.start(interval=interval, start_delay=start_delay, repeats=repeats)
|
||||
if found.desc != desc:
|
||||
found.desc = desc
|
||||
return found
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue