diff options
Diffstat (limited to 'Plugin.cs')
| -rwxr-xr-x | Plugin.cs | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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))
|