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:
goat 2023-06-20 19:59:56 +02:00
parent d1c22f7dd6
commit b4b84ad39d
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
2 changed files with 5 additions and 6 deletions

View file

@ -226,7 +226,6 @@ internal class SettingsWindow : Window
configuration.QueueSave();
_ = Service<PluginManager>.Get().ReloadPluginMastersAsync();
Service<InterfaceManager>.Get().RebuildFonts();
}
}

View file

@ -672,11 +672,11 @@ internal partial class PluginManager : IDisposable, IServiceType
.SelectMany(repo => repo.PluginMaster)
.Where(this.IsManifestEligible)
.Where(IsManifestVisible));
}
if (notify)
{
this.NotifyAvailablePluginsChanged();
if (notify)
{
this.NotifyAvailablePluginsChanged();
}
}
}