mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-10 21:31:53 +01:00
Fix callback not added to new PageChangeListener (#1658)
Fixes #1655 Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
parent
fc65deca01
commit
979e80ee9e
@ -251,9 +251,8 @@ public class SitemapSubscriptionService implements ModelRepositoryChangeListener
|
||||
// there is no listener for this page yet, so let's try to create one
|
||||
listener = new PageChangeListener(sitemapName, pageId, itemUIRegistry, collectWidgets(sitemapName, pageId));
|
||||
pageChangeListeners.put(getValue(sitemapName, pageId), listener);
|
||||
} else {
|
||||
listener.addCallback(callback);
|
||||
}
|
||||
listener.addCallback(callback);
|
||||
}
|
||||
|
||||
private EList<Widget> collectWidgets(String sitemapName, String pageId) {
|
||||
|
Loading…
Reference in New Issue
Block a user