fix device page selection

This commit is contained in:
Michael Zanetti 2018-07-07 16:56:57 +02:00
parent 6b88b4bf4d
commit a030873522

View File

@ -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;
} }