mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-02 13:53:40 +01:00
refactor: clean up async logic for PluginMaster loads
This commit is contained in:
parent
bd48297745
commit
86d9f01877
5 changed files with 42 additions and 30 deletions
|
|
@ -67,7 +67,7 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
private string errorModalMessage = string.Empty;
|
||||
|
||||
private int updatePluginCount = 0;
|
||||
private List<PluginUpdateStatus> updatedPlugins;
|
||||
private List<PluginUpdateStatus>? updatedPlugins;
|
||||
|
||||
private List<RemotePluginManifest> pluginListAvailable = new();
|
||||
private List<LocalPlugin> pluginListInstalled = new();
|
||||
|
|
@ -163,7 +163,7 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
{
|
||||
var pluginManager = Service<PluginManager>.Get();
|
||||
|
||||
Task.Run(pluginManager.ReloadPluginMasters);
|
||||
_ = pluginManager.ReloadPluginMastersAsync();
|
||||
|
||||
this.updatePluginCount = 0;
|
||||
this.updatedPlugins = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue