From f233753e26f2fc490e53d2e28c245b3b70436f19 Mon Sep 17 00:00:00 2001 From: Anna Date: Thu, 10 Aug 2023 15:29:51 -0400 Subject: [PATCH] fix: properly save when closing log --- SoundFilter/Ui/SoundLog.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SoundFilter/Ui/SoundLog.cs b/SoundFilter/Ui/SoundLog.cs index bddd6e7..77ea8d9 100755 --- a/SoundFilter/Ui/SoundLog.cs +++ b/SoundFilter/Ui/SoundLog.cs @@ -23,7 +23,6 @@ namespace SoundFilter.Ui { ImGui.SetNextWindowSize(new Vector2(500, 450), ImGuiCond.FirstUseEver); if (!ImGui.Begin(Language.LogWindowTitle, ref this.Plugin.Config.ShowLog)) { - this.Plugin.Config.Save(); ImGui.End(); return; } @@ -67,6 +66,10 @@ namespace SoundFilter.Ui { ImGui.EndChild(); } + // god disabled this frame + if (!this.Plugin.Config.ShowLog) { + this.Plugin.Config.Save(); + } ImGui.End(); }