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