chore: also lock when rendering

This commit is contained in:
goat 2023-01-18 22:45:17 +01:00
parent aa58edec9a
commit 9a32da7db8
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B

View file

@ -215,6 +215,8 @@ internal class PluginInstallerWindow : Window, IDisposable
/// <inheritdoc/>
public override void Draw()
{
lock (this.listLock)
{
this.DrawHeader();
this.DrawPluginCategories();
@ -225,6 +227,7 @@ internal class PluginInstallerWindow : Window, IDisposable
this.DrawFeedbackModal();
this.DrawProgressOverlay();
}
}
/// <summary>
/// Clear the icon and image caches, forcing a fresh download.
@ -433,7 +436,7 @@ internal class PluginInstallerWindow : Window, IDisposable
this.sortKind = selectable.SortKind;
this.filterText = selectable.Localization;
lock(this.listLock)
lock (this.listLock)
this.ResortPlugins();
}
}