mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-01 13:23:40 +01:00
feat: batch config saves
This commit is contained in:
parent
4769239b19
commit
9c16359914
17 changed files with 69 additions and 37 deletions
|
|
@ -130,13 +130,13 @@ internal class ConsoleWindow : Window, IDisposable
|
|||
if (ImGui.Checkbox("Auto-scroll", ref this.autoScroll))
|
||||
{
|
||||
configuration.LogAutoScroll = this.autoScroll;
|
||||
configuration.Save();
|
||||
configuration.QueueSave();
|
||||
}
|
||||
|
||||
if (ImGui.Checkbox("Open at startup", ref this.openAtStartup))
|
||||
{
|
||||
configuration.LogOpenAtStartup = this.openAtStartup;
|
||||
configuration.Save();
|
||||
configuration.QueueSave();
|
||||
}
|
||||
|
||||
var prevLevel = (int)EntryPoint.LogLevelSwitch.MinimumLevel;
|
||||
|
|
@ -144,7 +144,7 @@ internal class ConsoleWindow : Window, IDisposable
|
|||
{
|
||||
EntryPoint.LogLevelSwitch.MinimumLevel = (LogEventLevel)prevLevel;
|
||||
configuration.LogLevel = (LogEventLevel)prevLevel;
|
||||
configuration.Save();
|
||||
configuration.QueueSave();
|
||||
}
|
||||
|
||||
ImGui.EndPopup();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue