fix: save config for visibility settings

This commit is contained in:
Anna 2020-07-29 14:40:51 -04:00
parent 63911a7b53
commit 7607db473c
1 changed files with 3 additions and 0 deletions

View File

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