| 1 |
# this routine checks whether the launcher has requested to auto-start AW |
| 2 |
# we can't do this inside the AW namespace because that is only loaded |
| 3 |
# on demand, and we want this at Nasal (re-)init, not at AW namespace loading |
| 4 |
|
| 5 |
# Thorsten Renk 2018 |
| 6 |
|
| 7 |
|
| 8 |
var autoInit = func { |
| 9 |
var isEnabled = getprop("/nasal/local_weather/enabled"); |
| 10 |
if (isEnabled == 1) |
| 11 |
{ |
| 12 |
print ("Request detected to initialize Advanced Weather on startup..."); |
| 13 |
settimer( func {local_weather.set_tile();}, 0.2); |
| 14 |
} |
| 15 |
} |
| 16 |
|
| 17 |
autoInit(); |