1
0
Fork 0

Automatically run AW if /nasal/local_weather/enabled is true on startup

This commit is contained in:
Thorsten Renk 2018-01-29 08:57:13 +02:00
parent bb672b1185
commit 5334498037

View file

@ -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();