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

@ -216,14 +216,17 @@ internal class PluginInstallerWindow : Window, IDisposable
/// <inheritdoc/>
public override void Draw()
{
this.DrawHeader();
this.DrawPluginCategories();
this.DrawFooter();
this.DrawErrorModal();
this.DrawUpdateModal();
this.DrawTestingWarningModal();
this.DrawFeedbackModal();
this.DrawProgressOverlay();
lock (this.listLock)
{
this.DrawHeader();
this.DrawPluginCategories();
this.DrawFooter();
this.DrawErrorModal();
this.DrawUpdateModal();
this.DrawTestingWarningModal();
this.DrawFeedbackModal();
this.DrawProgressOverlay();
}
}
/// <summary>
@ -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();
}
}