From 7607db473c98a622f53ac5cb4c5a9e8c27b69877 Mon Sep 17 00:00:00 2001 From: Anna Date: Wed, 29 Jul 2020 14:40:51 -0400 Subject: [PATCH] fix: save config for visibility settings --- Peeping Tom/PluginUI.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Peeping Tom/PluginUI.cs b/Peeping Tom/PluginUI.cs index f3e506b..8bf4742 100644 --- a/Peeping Tom/PluginUI.cs +++ b/Peeping Tom/PluginUI.cs @@ -158,16 +158,19 @@ namespace PeepingTom { bool showInCombat = this.config.ShowInCombat; if (ImGui.Checkbox("Show window while in combat", ref showInCombat)) { this.config.ShowInCombat = showInCombat; + this.config.Save(); } bool showInInstance = this.config.ShowInInstance; if (ImGui.Checkbox("Show window while in instance", ref showInInstance)) { this.config.ShowInInstance = showInInstance; + this.config.Save(); } bool showInCutscenes = this.config.ShowInCutscenes; if (ImGui.Checkbox("Show window while in cutscenes", ref showInCutscenes)) { this.config.ShowInCutscenes = showInCutscenes; + this.config.Save(); } ImGui.EndTabItem();