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(); }