diff --git a/Nasal/local_weather/compat_layer.nas b/Nasal/local_weather/compat_layer.nas index e2af36f4c..5136624d3 100644 --- a/Nasal/local_weather/compat_layer.nas +++ b/Nasal/local_weather/compat_layer.nas @@ -119,6 +119,11 @@ print("* can disable global weather: "~result); print("Compatibility layer: tests done."); + +# do actual startup() +local_weather.updateMenu(); +local_weather.startup(); + }); diff --git a/Nasal/local_weather/local_weather.nas b/Nasal/local_weather/local_weather.nas index 4934603b3..7004013c3 100644 --- a/Nasal/local_weather/local_weather.nas +++ b/Nasal/local_weather/local_weather.nas @@ -4621,10 +4621,4 @@ var updateMenu = func { _setlistener("/nasal/local_weather/enabled", updateMenu); -# wait for Nasal to be available and do what is in startup() - -_setlistener("/nasal/local_weather/loaded", func { - updateMenu(); - startup(); -});