mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-06-17 20:08:33 +00:00
Update HomeAssistantView.mc
Removed empty else clause.
This commit is contained in:
@ -34,7 +34,6 @@ class HomeAssistantView extends WatchUi.Menu2 {
|
|||||||
:theme as WatchUi.MenuTheme or Null
|
:theme as WatchUi.MenuTheme or Null
|
||||||
} or Null
|
} or Null
|
||||||
) {
|
) {
|
||||||
|
|
||||||
if (options == null) {
|
if (options == null) {
|
||||||
options = {
|
options = {
|
||||||
:title => definition.get("title") as Lang.String
|
:title => definition.get("title") as Lang.String
|
||||||
@ -160,8 +159,8 @@ class HomeAssistantViewDelegate extends WatchUi.Menu2InputDelegate {
|
|||||||
var haMenuItem = item as HomeAssistantGroupMenuItem;
|
var haMenuItem = item as HomeAssistantGroupMenuItem;
|
||||||
// System.println("IconMenu: " + haMenuItem.getLabel() + " " + haMenuItem.getId());
|
// System.println("IconMenu: " + haMenuItem.getLabel() + " " + haMenuItem.getId());
|
||||||
WatchUi.pushView(haMenuItem.getMenuView(), new HomeAssistantViewDelegate(false), WatchUi.SLIDE_LEFT);
|
WatchUi.pushView(haMenuItem.getMenuView(), new HomeAssistantViewDelegate(false), WatchUi.SLIDE_LEFT);
|
||||||
} else {
|
// } else {
|
||||||
// System.println(item.getLabel() + " " + item.getId());
|
// System.println(item.getLabel() + " " + item.getId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user