1
0
Fork 0

#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:
ThorstenB 2011-06-25 19:23:53 +02:00
parent f0baae7142
commit 9c55acfb46
2 changed files with 5 additions and 6 deletions

View file

@ -119,6 +119,11 @@ print("* can disable global weather: "~result);
print("Compatibility layer: tests done.");
# do actual startup()
local_weather.updateMenu();
local_weather.startup();
});

View file

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