Fixed Profile Viewing

This commit is contained in:
ykeara
2019-01-08 21:31:13 -06:00
parent 9351267fb5
commit 123c38c586
3 changed files with 7 additions and 1 deletions
+4 -1
View File
@@ -142,7 +142,7 @@ MyStackViewPage {
onClicked: { onClicked: {
if (steamvrProfileComboBox.currentIndex > 0) { if (steamvrProfileComboBox.currentIndex > 0) {
SteamVRTabController.applySteamVRProfile(steamvrProfileComboBox.currentIndex - 1) SteamVRTabController.applySteamVRProfile(steamvrProfileComboBox.currentIndex - 1)
steamvrProfileComboBox.currentIndex = 0 //steamvrProfileComboBox.currentIndex = 0
} }
} }
} }
@@ -440,6 +440,9 @@ MyStackViewPage {
onSteamVRProfilesUpdated: { onSteamVRProfilesUpdated: {
reloadSteamVRProfiles() reloadSteamVRProfiles()
} }
onSteamVRProfileAdded:{
steamvrProfileComboBox.currentIndex = SteamVRTabController.getSteamVRProfileCount()
}
} }
} }
@@ -117,6 +117,7 @@ void SteamVRTabController::saveSteamVRProfiles()
settings->setValue( "supersampleFiltering", settings->setValue( "supersampleFiltering",
p.supersampleFiltering ); p.supersampleFiltering );
} }
settings->setValue("motionSmooth", p.motionSmooth);
/* /*
settings->setValue( "includesReprojectionSettings", settings->setValue( "includesReprojectionSettings",
p.includesReprojectionSettings ); p.includesReprojectionSettings );
@@ -641,6 +642,7 @@ void SteamVRTabController::addSteamVRProfile( QString name,
saveSteamVRProfiles(); saveSteamVRProfiles();
OverlayController::appSettings()->sync(); OverlayController::appSettings()->sync();
emit steamVRProfilesUpdated(); emit steamVRProfilesUpdated();
emit steamVRProfileAdded();
} }
void SteamVRTabController::applySteamVRProfile( unsigned index ) void SteamVRTabController::applySteamVRProfile( unsigned index )
@@ -120,6 +120,7 @@ signals:
void allowSupersampleFilteringChanged( bool value ); void allowSupersampleFilteringChanged( bool value );
void steamVRProfilesUpdated(); void steamVRProfilesUpdated();
void steamVRProfileAdded();
}; };
} // namespace advsettings } // namespace advsettings