diff --git a/global-functions.rsc b/global-functions.rsc index 85494402..4b052bc4 100644 --- a/global-functions.rsc +++ b/global-functions.rsc @@ -1926,9 +1926,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