Fixed revive grip mode reset bug on startup.

This commit is contained in:
2017-01-12 00:01:57 +01:00
parent f497a30629
commit 4cfcb933c5
+6 -1
View File
@@ -7,6 +7,8 @@ import matzman666.advsettings 1.0
MyStackViewPage { MyStackViewPage {
headerText: "Revive Settings" headerText: "Revive Settings"
property bool componentCompleted: false
content: ColumnLayout { content: ColumnLayout {
spacing: 12 spacing: 12
@@ -151,7 +153,9 @@ MyStackViewPage {
Layout.fillWidth: true Layout.fillWidth: true
model: ["Normal Mode", "Toggle Mode", "Hybrid Mode"] model: ["Normal Mode", "Toggle Mode", "Hybrid Mode"]
onCurrentIndexChanged: { onCurrentIndexChanged: {
ReviveTabController.setGripButtonMode(currentIndex, false) if (componentCompleted) {
ReviveTabController.setGripButtonMode(currentIndex, false)
}
} }
} }
} }
@@ -985,6 +989,7 @@ MyStackViewPage {
touchYInputField.text = ReviveTabController.touchY.toFixed(3) touchYInputField.text = ReviveTabController.touchY.toFixed(3)
touchZInputField.text = ReviveTabController.touchZ.toFixed(3) touchZInputField.text = ReviveTabController.touchZ.toFixed(3)
reloadControllerProfiles() reloadControllerProfiles()
componentCompleted = true
} }
Connections { Connections {