Fix entering thing pages

This commit is contained in:
Michael Zanetti 2020-09-22 19:41:29 +02:00
parent 30190b1b06
commit 104d9f4459
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ MainPageTile {
var page;
// Only one item? Go streight to the thing page
if (devicesProxy.count === 1) {
page = app.interfaceListToDevicePage([iface.name]);
page = NymeaUtils.interfaceListToDevicePage([iface.name]);
pageStack.push(Qt.resolvedUrl("../devicepages/" + page), {thing: devicesProxy.get(0)})
return;
}

View File

@ -47,7 +47,7 @@ Page {
function enterPage(index) {
var thing = thingsProxy.get(index);
var page = app.interfaceListToDevicePage(root.shownInterfaces);
var page = NymeaUtils.interfaceListToDevicePage(root.shownInterfaces);
pageStack.push(Qt.resolvedUrl("../devicepages/" + page), {thing: thingsProxy.get(index)})
}