summaryrefslogtreecommitdiff
path: root/Plugin.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Plugin.cs')
-rwxr-xr-xPlugin.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/Plugin.cs b/Plugin.cs
index d023e01..d55391f 100755
--- a/Plugin.cs
+++ b/Plugin.cs
@@ -2947,6 +2947,7 @@ namespace WorldTuningTool
ImGui.PushID("Preset");
ImGui.Text("Quick Presets:");
ImGui.PushItemWidth(width * 0.35f);
+ string prevPreset = selectedPreset;
if (ImGui.Button("+"))
{
string presetName = "New Set";
@@ -2958,8 +2959,6 @@ namespace WorldTuningTool
}
config.Presets[presetName] = new List<Override>();
selectedPreset = presetName;
- config.SelectedPreset = selectedPreset;
- saveConfig();
}
ImGui.SameLine();
if (renamingPreset)
@@ -2967,7 +2966,6 @@ namespace WorldTuningTool
ImGui.PushItemFlag(ImGuiItemFlags.Disabled, true);
ImGui.PushStyleVar(ImGuiStyleVar.Alpha, ImGui.GetStyle().Alpha * 0.5f);
}
- string prevPreset = selectedPreset;
if (ImGui.BeginCombo("##Presets", selectedPreset))
{
if (ImGui.Selectable("(None)", false))