mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 12:23:39 +01:00
feat: batch config saves
This commit is contained in:
parent
4769239b19
commit
9c16359914
17 changed files with 69 additions and 37 deletions
|
|
@ -515,7 +515,7 @@ internal class DalamudInterface : IDisposable, IServiceType
|
|||
if (ImGui.MenuItem("Draw dev menu at startup", string.Empty, ref devBarAtStartup))
|
||||
{
|
||||
configuration.DevBarOpenAtStartup ^= true;
|
||||
configuration.Save();
|
||||
configuration.QueueSave();
|
||||
}
|
||||
|
||||
ImGui.Separator();
|
||||
|
|
@ -533,7 +533,7 @@ internal class DalamudInterface : IDisposable, IServiceType
|
|||
{
|
||||
EntryPoint.LogLevelSwitch.MinimumLevel = logLevel;
|
||||
configuration.LogLevel = logLevel;
|
||||
configuration.Save();
|
||||
configuration.QueueSave();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -544,7 +544,7 @@ internal class DalamudInterface : IDisposable, IServiceType
|
|||
if (ImGui.MenuItem("Log Synchronously", null, ref logSynchronously))
|
||||
{
|
||||
configuration.LogSynchronously = logSynchronously;
|
||||
configuration.Save();
|
||||
configuration.QueueSave();
|
||||
|
||||
var startupInfo = Service<DalamudStartInfo>.Get();
|
||||
EntryPoint.InitLogging(
|
||||
|
|
@ -563,7 +563,7 @@ internal class DalamudInterface : IDisposable, IServiceType
|
|||
antiDebug.Disable();
|
||||
|
||||
configuration.IsAntiAntiDebugEnabled = newEnabled;
|
||||
configuration.Save();
|
||||
configuration.QueueSave();
|
||||
}
|
||||
|
||||
ImGui.Separator();
|
||||
|
|
@ -693,7 +693,7 @@ internal class DalamudInterface : IDisposable, IServiceType
|
|||
if (ImGui.MenuItem("Enable asserts at startup", null, configuration.AssertsEnabledAtStartup))
|
||||
{
|
||||
configuration.AssertsEnabledAtStartup = !configuration.AssertsEnabledAtStartup;
|
||||
configuration.Save();
|
||||
configuration.QueueSave();
|
||||
}
|
||||
|
||||
if (ImGui.MenuItem("Clear focus"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue