Silence qml "Created graphical object..." warning
This commit is contained in:
+6
-14
@@ -77,7 +77,7 @@ Kirigami.ApplicationWindow {
|
||||
|
||||
if (root.first_run && started) {
|
||||
console.log("First run");
|
||||
root.pageStack.push(Qt.resolvedUrl("WizardPage.qml"));
|
||||
root.pageStack.push(Qt.createComponent("WizardPage.qml").createObject());
|
||||
root.first_run = false;
|
||||
}
|
||||
}
|
||||
@@ -352,14 +352,14 @@ Kirigami.ApplicationWindow {
|
||||
Kirigami.Action {
|
||||
text: i18n("Wizard")
|
||||
icon.name: "tools-wizard-symbolic"
|
||||
onTriggered: root.pageStack.push(Qt.resolvedUrl("WizardPage.qml"))
|
||||
onTriggered: root.pageStack.push(Qt.createComponent("WizardPage.qml").createObject())
|
||||
visible: root.pageStack.depth == 1
|
||||
enabled: root.server_started
|
||||
},
|
||||
Kirigami.Action {
|
||||
text: i18n("Install the app")
|
||||
icon.name: "install-symbolic"
|
||||
onTriggered: root.pageStack.push(Qt.resolvedUrl("ApkInstallPage.qml"))
|
||||
onTriggered: root.pageStack.push(Qt.createComponent("ApkInstallPage.qml").createObject())
|
||||
visible: root.pageStack.depth == 1
|
||||
enabled: root.server_started && Adb.adbInstalled
|
||||
tooltip: {
|
||||
@@ -370,32 +370,24 @@ Kirigami.ApplicationWindow {
|
||||
return "";
|
||||
}
|
||||
},
|
||||
// Kirigami.Action {
|
||||
// text: i18n("Statistics")
|
||||
// icon.name: "office-chart-line-symbolic"
|
||||
// onTriggered: root.pageStack.push(Qt.resolvedUrl("HeadsetStatsPage.qml"))
|
||||
// visible: root.pageStack.depth == 1
|
||||
// enabled: root.server_started && Adb.adbInstalled && WivrnServer.headsetConnected
|
||||
// },
|
||||
|
||||
Kirigami.Action {
|
||||
text: i18n("Headsets")
|
||||
icon.name: "item-symbolic"
|
||||
onTriggered: root.pageStack.push(Qt.resolvedUrl("HeadsetsPage.qml"))
|
||||
onTriggered: root.pageStack.push(Qt.createComponent("HeadsetsPage.qml").createObject())
|
||||
visible: root.pageStack.depth == 1
|
||||
enabled: root.server_started
|
||||
},
|
||||
Kirigami.Action {
|
||||
text: i18n("Settings")
|
||||
icon.name: "settings-configure-symbolic"
|
||||
onTriggered: root.pageStack.push(Qt.resolvedUrl("SettingsPage.qml"))
|
||||
onTriggered: root.pageStack.push(Qt.createComponent("SettingsPage.qml").createObject())
|
||||
visible: root.pageStack.depth == 1
|
||||
enabled: root.server_started
|
||||
},
|
||||
Kirigami.Action {
|
||||
text: i18n("Troubleshoot")
|
||||
icon.name: "help-contents-symbolic"
|
||||
onTriggered: root.pageStack.push(Qt.resolvedUrl("TroubleshootPage.qml"))
|
||||
onTriggered: root.pageStack.push(Qt.createComponent("TroubleshootPage.qml").createObject())
|
||||
enabled: root.pageStack.depth == 1
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user