Fixed regression?

This commit is contained in:
armored-dragon 2024-11-23 09:27:35 -06:00
parent 096a1d5006
commit 2fd7c44ac6
No known key found for this signature in database
GPG key ID: C7207ACC3382AD8B

View file

@ -144,12 +144,8 @@ Rectangle {
// FPS // FPS
SettingComboBox { SettingComboBox {
settingText: "Refresh rate"; settingText: "Refresh rate";
optionIndex: Performance.getPerformancePreset() - 1;
options: ["Economical", "Interactive", "Real-Time", "Custom"]; options: ["Economical", "Interactive", "Real-Time", "Custom"];
optionIndex: Performance.getRefreshRateProfile();
Component.onCompleted: {
optionIndex = Performance.getRefreshRateProfile()
}
onValueChanged: { onValueChanged: {
Performance.setRefreshRateProfile(index); Performance.setRefreshRateProfile(index);