From 123c38c5861fa21a1cbe491173964d28c76d89a3 Mon Sep 17 00:00:00 2001 From: ykeara Date: Tue, 8 Jan 2019 21:31:13 -0600 Subject: [PATCH] Fixed Profile Viewing --- src/res/qml/SteamVRPage.qml | 5 ++++- src/tabcontrollers/SteamVRTabController.cpp | 2 ++ src/tabcontrollers/SteamVRTabController.h | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/res/qml/SteamVRPage.qml b/src/res/qml/SteamVRPage.qml index 4b627a7..323348f 100644 --- a/src/res/qml/SteamVRPage.qml +++ b/src/res/qml/SteamVRPage.qml @@ -142,7 +142,7 @@ MyStackViewPage { onClicked: { if (steamvrProfileComboBox.currentIndex > 0) { SteamVRTabController.applySteamVRProfile(steamvrProfileComboBox.currentIndex - 1) - steamvrProfileComboBox.currentIndex = 0 + //steamvrProfileComboBox.currentIndex = 0 } } } @@ -440,6 +440,9 @@ MyStackViewPage { onSteamVRProfilesUpdated: { reloadSteamVRProfiles() } + onSteamVRProfileAdded:{ + steamvrProfileComboBox.currentIndex = SteamVRTabController.getSteamVRProfileCount() + } } } diff --git a/src/tabcontrollers/SteamVRTabController.cpp b/src/tabcontrollers/SteamVRTabController.cpp index 6504f63..f245240 100644 --- a/src/tabcontrollers/SteamVRTabController.cpp +++ b/src/tabcontrollers/SteamVRTabController.cpp @@ -117,6 +117,7 @@ void SteamVRTabController::saveSteamVRProfiles() settings->setValue( "supersampleFiltering", p.supersampleFiltering ); } + settings->setValue("motionSmooth", p.motionSmooth); /* settings->setValue( "includesReprojectionSettings", p.includesReprojectionSettings ); @@ -641,6 +642,7 @@ void SteamVRTabController::addSteamVRProfile( QString name, saveSteamVRProfiles(); OverlayController::appSettings()->sync(); emit steamVRProfilesUpdated(); + emit steamVRProfileAdded(); } void SteamVRTabController::applySteamVRProfile( unsigned index ) diff --git a/src/tabcontrollers/SteamVRTabController.h b/src/tabcontrollers/SteamVRTabController.h index 27e0d0c..8fc5a2a 100644 --- a/src/tabcontrollers/SteamVRTabController.h +++ b/src/tabcontrollers/SteamVRTabController.h @@ -120,6 +120,7 @@ signals: void allowSupersampleFilteringChanged( bool value ); void steamVRProfilesUpdated(); + void steamVRProfileAdded(); }; } // namespace advsettings