Make this work!

This commit is contained in:
Zach Fox 2019-05-31 12:50:32 -07:00
parent 8e5c94abb0
commit 97bd0d5413
2 changed files with 7 additions and 7 deletions

View file

@ -116,27 +116,27 @@ Flickable {
SimplifiedControls.RadioButton { SimplifiedControls.RadioButton {
id: performanceLow id: performanceLow
text: "Low" text: "Low"
checked: Performance.getPerformancePreset() === PerformacePreset.LOW checked: Performance.getPerformancePreset() === PerformanceEnums.LOW
onClicked: { onClicked: {
Performance.setPerformancePreset(PerformacePreset.LOW); Performance.setPerformancePreset(PerformanceEnums.LOW);
} }
} }
SimplifiedControls.RadioButton { SimplifiedControls.RadioButton {
id: performanceMedium id: performanceMedium
text: "Medium" text: "Medium"
checked: Performance.getPerformancePreset() === PerformacePreset.MID checked: Performance.getPerformancePreset() === PerformanceEnums.MID
onClicked: { onClicked: {
Performance.setPerformancePreset(PerformacePreset.MID); Performance.setPerformancePreset(PerformanceEnums.MID);
} }
} }
SimplifiedControls.RadioButton { SimplifiedControls.RadioButton {
id: performanceHigh id: performanceHigh
text: "High" text: "High"
checked: Performance.getPerformancePreset() === PerformacePreset.HIGH checked: Performance.getPerformancePreset() === PerformanceEnums.HIGH
onClicked: { onClicked: {
Performance.setPerformancePreset(PerformacePreset.HIGH); Performance.setPerformancePreset(PerformanceEnums.HIGH);
} }
} }
} }

View file

@ -15,7 +15,7 @@ std::once_flag PerformanceScriptingInterface::registry_flag;
PerformanceScriptingInterface::PerformanceScriptingInterface() { PerformanceScriptingInterface::PerformanceScriptingInterface() {
std::call_once(registry_flag, [] { std::call_once(registry_flag, [] {
qmlRegisterType<PerformanceScriptingInterface>("PerformanceEnums", 1, 0, "RefreshRate"); qmlRegisterType<PerformanceScriptingInterface>("PerformanceEnums", 1, 0, "PerformanceEnums");
}); });
} }