fix: save config for visibility settings
This commit is contained in:
parent
63911a7b53
commit
7607db473c
|
@ -158,16 +158,19 @@ namespace PeepingTom {
|
||||||
bool showInCombat = this.config.ShowInCombat;
|
bool showInCombat = this.config.ShowInCombat;
|
||||||
if (ImGui.Checkbox("Show window while in combat", ref showInCombat)) {
|
if (ImGui.Checkbox("Show window while in combat", ref showInCombat)) {
|
||||||
this.config.ShowInCombat = showInCombat;
|
this.config.ShowInCombat = showInCombat;
|
||||||
|
this.config.Save();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool showInInstance = this.config.ShowInInstance;
|
bool showInInstance = this.config.ShowInInstance;
|
||||||
if (ImGui.Checkbox("Show window while in instance", ref showInInstance)) {
|
if (ImGui.Checkbox("Show window while in instance", ref showInInstance)) {
|
||||||
this.config.ShowInInstance = showInInstance;
|
this.config.ShowInInstance = showInInstance;
|
||||||
|
this.config.Save();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool showInCutscenes = this.config.ShowInCutscenes;
|
bool showInCutscenes = this.config.ShowInCutscenes;
|
||||||
if (ImGui.Checkbox("Show window while in cutscenes", ref showInCutscenes)) {
|
if (ImGui.Checkbox("Show window while in cutscenes", ref showInCutscenes)) {
|
||||||
this.config.ShowInCutscenes = showInCutscenes;
|
this.config.ShowInCutscenes = showInCutscenes;
|
||||||
|
this.config.Save();
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui.EndTabItem();
|
ImGui.EndTabItem();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user