#351: fix listener sequence for local weather
Module relied on one listener to be called before the other. Join listeners to avoid dependencies.
This commit is contained in:
parent
f0baae7142
commit
9c55acfb46
2 changed files with 5 additions and 6 deletions
|
@ -119,6 +119,11 @@ print("* can disable global weather: "~result);
|
|||
|
||||
|
||||
print("Compatibility layer: tests done.");
|
||||
|
||||
# do actual startup()
|
||||
local_weather.updateMenu();
|
||||
local_weather.startup();
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue