Add alternative main page mechanism
This commit is contained in:
parent
30fbe16f82
commit
0cf66684d0
@ -27,6 +27,8 @@ Item {
|
|||||||
|
|
||||||
property string defaultMainView: "things"
|
property string defaultMainView: "things"
|
||||||
|
|
||||||
|
property string alternativeMainPage: ""
|
||||||
|
|
||||||
property var mainMenuLinks: null
|
property var mainMenuLinks: null
|
||||||
property bool closedSource: false
|
property bool closedSource: false
|
||||||
|
|
||||||
|
|||||||
@ -212,7 +212,12 @@ Item {
|
|||||||
|
|
||||||
if (engine.jsonRpcClient.connected) {
|
if (engine.jsonRpcClient.connected) {
|
||||||
print("Connected to", engine.jsonRpcClient.currentHost.uuid, engine.jsonRpcClient.currentHost.name)
|
print("Connected to", engine.jsonRpcClient.currentHost.uuid, engine.jsonRpcClient.currentHost.name)
|
||||||
pageStack.push(Qt.resolvedUrl("MainPage.qml"))
|
if (Configuration.alternativeMainPage !== "") {
|
||||||
|
print("Loading alternative main page:", Configuration.alternativeMainPage)
|
||||||
|
pageStack.push(Qt.resolvedUrl(Configuration.alternativeMainPage))
|
||||||
|
} else {
|
||||||
|
pageStack.push(Qt.resolvedUrl("MainPage.qml"))
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user