From 426da3e99ccb6dd95068880a6c5ab95af6af4c6a Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 20 Jan 2026 15:34:05 +0100 Subject: [PATCH] global-functions: simplify the scheduler fix --- global-functions.rsc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/global-functions.rsc b/global-functions.rsc index 2747d600..ae1d6b31 100644 --- a/global-functions.rsc +++ b/global-functions.rsc @@ -1925,9 +1925,7 @@ :if ([ :len [ find where name="global-scripts" ] ] = 0) do={ add name="global-scripts" start-time=startup; } - :if ([ get "global-scripts" on-event ] != $OnEvent) do={ - set "global-scripts" on-event=$OnEvent; - } + set on-event=$OnEvent [ find where name="global-scripts" on-event!=$OnEvent ]; } # Log success