global-functions: simplify scheduler fix

This commit is contained in:
Christian Hesse 2026-01-20 15:34:05 +01:00
parent 74be3eae5d
commit 16976b1d78

View file

@ -1926,9 +1926,7 @@
:if ([ :len [ find where name="global-scripts" ] ] = 0) do={ :if ([ :len [ find where name="global-scripts" ] ] = 0) do={
add name="global-scripts" start-time=startup; add name="global-scripts" start-time=startup;
} }
:if ([ get "global-scripts" on-event ] != $OnEvent) do={ set on-event=$OnEvent [ find where name="global-scripts" on-event!=$OnEvent ];
set "global-scripts" on-event=$OnEvent;
}
} }
# Log success # Log success