fix device page selection
This commit is contained in:
parent
6b88b4bf4d
commit
a030873522
@ -253,11 +253,12 @@ ApplicationWindow {
|
|||||||
page = "ShutterDevicePage.qml";
|
page = "ShutterDevicePage.qml";
|
||||||
} else if (interfaceList.indexOf("garagegate") >= 0 ) {
|
} else if (interfaceList.indexOf("garagegate") >= 0 ) {
|
||||||
page = "GarageGateDevicePage.qml";
|
page = "GarageGateDevicePage.qml";
|
||||||
} else if (interfaceList.indexOf("light")) {
|
} else if (interfaceList.indexOf("light") >= 0) {
|
||||||
page = "ColorLightDevicePage.qml"
|
page = "ColorLightDevicePage.qml"
|
||||||
} else {
|
} else {
|
||||||
page = "GenericDevicePage.qml";
|
page = "GenericDevicePage.qml";
|
||||||
}
|
}
|
||||||
|
print("Selecting page", page, "for interface list:", interfaceList)
|
||||||
return page;
|
return page;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user