mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-31 21:03:43 +01:00
feat: batch config saves
This commit is contained in:
parent
4769239b19
commit
9c16359914
17 changed files with 69 additions and 37 deletions
|
|
@ -106,7 +106,7 @@ Thanks and have fun!";
|
|||
if (this.SafeMode)
|
||||
{
|
||||
this.configuration.PluginSafeMode = false;
|
||||
this.configuration.Save();
|
||||
this.configuration.QueueSave();
|
||||
}
|
||||
|
||||
this.PluginConfigs = new PluginConfigurations(Path.Combine(Path.GetDirectoryName(this.startInfo.ConfigurationPath) ?? string.Empty, "pluginConfigs"));
|
||||
|
|
@ -409,7 +409,7 @@ Thanks and have fun!";
|
|||
}
|
||||
}
|
||||
|
||||
this.configuration.Save();
|
||||
this.configuration.QueueSave();
|
||||
|
||||
try
|
||||
{
|
||||
|
|
@ -716,8 +716,9 @@ Thanks and have fun!";
|
|||
// Ensure that we have a testing opt-in for this plugin if we are installing a testing version
|
||||
if (useTesting && this.configuration.PluginTestingOptIns!.All(x => x.InternalName != repoManifest.InternalName))
|
||||
{
|
||||
// TODO: this isn't safe
|
||||
this.configuration.PluginTestingOptIns.Add(new PluginTestingOptIn(repoManifest.InternalName));
|
||||
this.configuration.Save();
|
||||
this.configuration.QueueSave();
|
||||
}
|
||||
|
||||
var downloadUrl = useTesting ? repoManifest.DownloadLinkTesting : repoManifest.DownloadLinkInstall;
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ internal class LocalDevPlugin : LocalPlugin, IDisposable
|
|||
if (!configuration.DevPluginSettings.TryGetValue(dllFile.FullName, out this.devSettings))
|
||||
{
|
||||
configuration.DevPluginSettings[dllFile.FullName] = this.devSettings = new DevPluginSettings();
|
||||
configuration.Save();
|
||||
configuration.QueueSave();
|
||||
}
|
||||
|
||||
if (this.AutomaticReload)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue