mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-22 17:32:19 -05:00
fix: default cvar values before applying presets (#2357)
This commit is contained in:
parent
13b8f26435
commit
418d0f8e6c
@ -55,9 +55,8 @@ void DrawPresetSelector(PresetType presetTypeId) {
|
|||||||
|
|
||||||
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(6.0f, 4.0f));
|
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(6.0f, 4.0f));
|
||||||
if (ImGui::Button(("Apply Preset##" + presetTypeCvar).c_str())) {
|
if (ImGui::Button(("Apply Preset##" + presetTypeCvar).c_str())) {
|
||||||
if (selectedPresetId == 0) {
|
clearCvars(presetTypeDef.cvarsToClear);
|
||||||
clearCvars(presetTypeDef.cvarsToClear);
|
if (selectedPresetId != 0) {
|
||||||
} else {
|
|
||||||
applyPreset(selectedPresetDef.entries);
|
applyPreset(selectedPresetDef.entries);
|
||||||
}
|
}
|
||||||
SohImGui::RequestCvarSaveOnNextTick();
|
SohImGui::RequestCvarSaveOnNextTick();
|
||||||
|
Loading…
Reference in New Issue
Block a user