fix: some concurrency issues with the installer

This commit is contained in:
Aireil 2022-09-13 17:39:30 +02:00
parent 49793a1f17
commit 9bf714b6ba
No known key found for this signature in database
GPG key ID: EA9CA38B48706D3D
2 changed files with 2 additions and 2 deletions

View file

@ -1035,7 +1035,7 @@ namespace Dalamud.Interface.Internal.Windows.PluginInstaller
private void DrawPluginCategoryContent() private void DrawPluginCategoryContent()
{ {
var ready = this.DrawPluginListLoading(); var ready = this.DrawPluginListLoading() && !this.AnyOperationInProgress;
if (!this.categoryManager.IsSelectionValid || !ready) if (!this.categoryManager.IsSelectionValid || !ready)
{ {
return; return;

View file

@ -151,7 +151,7 @@ internal partial class PluginManager : IDisposable, IServiceType
/// <summary> /// <summary>
/// Gets a value indicating whether all added repos are not in progress. /// Gets a value indicating whether all added repos are not in progress.
/// </summary> /// </summary>
public bool ReposReady => this.Repos.All(repo => repo.State != PluginRepositoryState.InProgress || repo.State != PluginRepositoryState.Fail); public bool ReposReady => this.Repos.All(repo => repo.State != PluginRepositoryState.InProgress);
/// <summary> /// <summary>
/// Gets a value indicating whether the plugin manager started in safe mode. /// Gets a value indicating whether the plugin manager started in safe mode.