Fixed 2 incorrect needs_save instances (#1115)

This commit is contained in:
aMannus 2022-08-15 04:59:12 +02:00 committed by GitHub
parent 68e7f2e6c1
commit 651e0ddad4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1155,6 +1155,7 @@ namespace SohImGui {
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(6.0f, 4.0f)); ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(6.0f, 4.0f));
if (ImGui::Button("Apply Preset")) { if (ImGui::Button("Apply Preset")) {
applyEnhancementPresets(); applyEnhancementPresets();
needs_save = true;
} }
ImGui::PopStyleVar(1); ImGui::PopStyleVar(1);
@ -1746,7 +1747,6 @@ namespace SohImGui {
else { else {
lastBetaQuestWorld = betaQuestWorld = 0xFFEF; lastBetaQuestWorld = betaQuestWorld = 0xFFEF;
CVar_SetS32("gBetaQuestWorld", betaQuestWorld); CVar_SetS32("gBetaQuestWorld", betaQuestWorld);
needs_save = true;
} }
if (betaQuestEnabled != lastBetaQuestEnabled || betaQuestWorld != lastBetaQuestWorld) if (betaQuestEnabled != lastBetaQuestEnabled || betaQuestWorld != lastBetaQuestWorld)
{ {