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/> /// <inheritdoc/>
public override void Draw() public override void Draw()
{ {
this.DrawHeader(); lock (this.listLock)
this.DrawPluginCategories(); {
this.DrawFooter(); this.DrawHeader();
this.DrawErrorModal(); this.DrawPluginCategories();
this.DrawUpdateModal(); this.DrawFooter();
this.DrawTestingWarningModal(); this.DrawErrorModal();
this.DrawFeedbackModal(); this.DrawUpdateModal();
this.DrawProgressOverlay(); this.DrawTestingWarningModal();
this.DrawFeedbackModal();
this.DrawProgressOverlay();
}
} }
/// <summary> /// <summary>
@ -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();
} }
} }