Add alternative main page mechanism
parent
30fbe16f82
commit
0cf66684d0
|
|
@ -27,6 +27,8 @@ Item {
|
|||
|
||||
property string defaultMainView: "things"
|
||||
|
||||
property string alternativeMainPage: ""
|
||||
|
||||
property var mainMenuLinks: null
|
||||
property bool closedSource: false
|
||||
|
||||
|
|
|
|||
|
|
@ -212,7 +212,12 @@ Item {
|
|||
|
||||
if (engine.jsonRpcClient.connected) {
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue