mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-23 17:09:17 +01:00
Fix race condition in plugin load
When opening the installer while boot plugins are still loaded, it may have been possible for plugins to be added to the installed plugins list twice, causing various statekeeping issues
This commit is contained in:
parent
096f9c3e52
commit
e29171cc99
6 changed files with 83 additions and 82 deletions
|
|
@ -283,7 +283,7 @@ internal class PluginInstallerWindow : Window, IDisposable
|
|||
var pluginManager = Service<PluginManager>.Get();
|
||||
|
||||
_ = pluginManager.ReloadPluginMastersAsync();
|
||||
Service<PluginManager>.Get().ScanDevPlugins();
|
||||
_ = pluginManager.ScanDevPluginsAsync();
|
||||
|
||||
if (!this.isSearchTextPrefilled)
|
||||
{
|
||||
|
|
@ -782,7 +782,7 @@ internal class PluginInstallerWindow : Window, IDisposable
|
|||
ImGui.SameLine();
|
||||
if (ImGui.Button(Locs.FooterButton_ScanDevPlugins))
|
||||
{
|
||||
pluginManager.ScanDevPlugins();
|
||||
_ = pluginManager.ScanDevPluginsAsync();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue