diff --git a/Nasal/local_weather/local_weather.nas b/Nasal/local_weather/local_weather.nas index 95c9d8e2c..564e1fd21 100644 --- a/Nasal/local_weather/local_weather.nas +++ b/Nasal/local_weather/local_weather.nas @@ -4744,3 +4744,13 @@ var updateMenu = func { _setlistener("/nasal/local_weather/enabled", updateMenu); +var autoInit = func { + var isEnabled = getprop("/nasal/local_weather/enabled"); + if (isEnabled == 1) + { + print ("Request detected to initialize Advanced Weather on startup..."); + settimer( func {local_weather.set_tile();}, 0.2); + } +} + +autoInit();