Skip to content

Commit

Permalink
Actually save multibox nag state
Browse files Browse the repository at this point in the history
- Not perfect, because instances can clobber each other, but eh.
  • Loading branch information
KazWolfe committed Aug 17, 2023
1 parent 5941404 commit 5751628
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion FFXIVPlugin/Base/PluginConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public class PluginConfig : IPluginConfiguration {
/// <summary>
/// Suppresses nag messages related to multiboxing.
/// </summary>
public bool SuppressMultiboxNag = false;
public bool SuppressMultiboxNag { get; set; } = false;

public void Save() {
Injections.PluginInterface.SavePluginConfig(this);
Expand Down
1 change: 1 addition & 0 deletions FFXIVPlugin/UI/Windows/Nags/MultiboxNag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ protected override void _internalDraw() {

if (ImGui.Checkbox(UIStrings.MultiboxNag_SuppressWarning, ref this._suppressMultiboxNag)) {
this._pluginConfig.SuppressMultiboxNag = this._suppressMultiboxNag;
this._pluginConfig.Save();
}

ImGui.Spacing();
Expand Down

0 comments on commit 5751628

Please sign in to comment.