mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-06-17 11:58:30 +00:00
Added callback function to TemplateMenuItem
This commit is contained in:
@ -37,6 +37,8 @@ class HomeAssistantGroupMenuItem extends TemplateMenuItem {
|
||||
TemplateMenuItem.initialize(
|
||||
definition.get("name") as Lang.String,
|
||||
template,
|
||||
// Now this feels very "closely coupled" to the application, but it is the most reliable method instead of using a timer.
|
||||
getApp().method(:updateNextMenuItem),
|
||||
icon,
|
||||
options
|
||||
);
|
||||
|
Reference in New Issue
Block a user