mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
fix: don't always reload PluginMasters when saving settings
Fixes a race condition when filtering categories while two refilters were active
This commit is contained in:
parent
d1c22f7dd6
commit
b4b84ad39d
2 changed files with 5 additions and 6 deletions
|
|
@ -226,7 +226,6 @@ internal class SettingsWindow : Window
|
||||||
|
|
||||||
configuration.QueueSave();
|
configuration.QueueSave();
|
||||||
|
|
||||||
_ = Service<PluginManager>.Get().ReloadPluginMastersAsync();
|
|
||||||
Service<InterfaceManager>.Get().RebuildFonts();
|
Service<InterfaceManager>.Get().RebuildFonts();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -672,13 +672,13 @@ internal partial class PluginManager : IDisposable, IServiceType
|
||||||
.SelectMany(repo => repo.PluginMaster)
|
.SelectMany(repo => repo.PluginMaster)
|
||||||
.Where(this.IsManifestEligible)
|
.Where(this.IsManifestEligible)
|
||||||
.Where(IsManifestVisible));
|
.Where(IsManifestVisible));
|
||||||
}
|
|
||||||
|
|
||||||
if (notify)
|
if (notify)
|
||||||
{
|
{
|
||||||
this.NotifyAvailablePluginsChanged();
|
this.NotifyAvailablePluginsChanged();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Scan the devPlugins folder for new DLL files that are not already loaded into the manager. They are not loaded,
|
/// Scan the devPlugins folder for new DLL files that are not already loaded into the manager. They are not loaded,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue