mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-06-17 11:58:30 +00:00
Removed timer based update mechanism
Instead chaining calls from the previous update is a slightly close coupled way that might need to be refined.
This commit is contained in:
@ -85,6 +85,8 @@ class HomeAssistantToggleMenuItem extends WatchUi.ToggleMenuItem {
|
||||
}
|
||||
setUiToggle(state);
|
||||
}
|
||||
// Now this feels very "closely coupled" to the application, but it is the most reliable method instead of using a timer.
|
||||
getApp().updateNextMenuItem();
|
||||
}
|
||||
|
||||
function getState() as Void {
|
||||
|
Reference in New Issue
Block a user