fix: lock profile manager while changing state

This commit is contained in:
goat 2023-06-20 19:20:08 +02:00
parent 3d47e05ab0
commit 28e9d5f156
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
5 changed files with 77 additions and 43 deletions

View file

@ -2898,7 +2898,7 @@ internal class PluginInstallerWindow : Window, IDisposable
private void OnInstalledPluginsChanged()
{
var pluginManager = Service<PluginManager>.Get();
using var pmLock = pluginManager.LockPluginLists();
using var pmLock = pluginManager.GetSyncScope();
lock (this.listLock)
{