Skip to content

Commit

Permalink
feat: add quick settings toggle to breaking change window
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-is-cute committed Oct 24, 2023
1 parent 72999e5 commit 98fdd6e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Ui/BreakingChangeWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ private void Draw() {
ImGui.PushTextWrapPos();
using var pop = new OnDispose(ImGui.PopTextWrapPos);

ImGui.TextUnformatted("Recent mod updates have breaking changes that have resulted in your saved settings potentially being reset. You can review these changes below.");
if (ImGui.Checkbox("Check for breaking changes after mod updates", ref this.Plugin.Config.WarnAboutBreakingChanges)) {
this.Plugin.SaveConfig();
}

ImGui.Separator();

ImGui.TextUnformatted("Recent mod updates have breaking changes that have resulted in your saved settings potentially being reset or changed. You can review these changes below.");
ImGui.Separator();

// draw each breaking change with a button to open that mod
Expand Down

0 comments on commit 98fdd6e

Please sign in to comment.