fix: always scan for dev plugins when opening the plugin installer (#2184)

* fix: scan for dev plugins on plugin installer window open

* fix: show scan dev plugins button based on plugin locations and not installed plugins
This commit is contained in:
nil 2025-02-28 20:37:58 -05:00 committed by GitHub
parent dd47147538
commit cd03ef7d02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -283,6 +283,7 @@ internal class PluginInstallerWindow : Window, IDisposable
var pluginManager = Service<PluginManager>.Get();
_ = pluginManager.ReloadPluginMastersAsync();
Service<PluginManager>.Get().ScanDevPlugins();
if (!this.isSearchTextPrefilled) this.searchText = string.Empty;
this.sortKind = PluginSortKind.Alphabetical;
@ -755,8 +756,9 @@ internal class PluginInstallerWindow : Window, IDisposable
Service<DalamudInterface>.Get().OpenSettings();
}
// If any dev plugins are installed, allow a shortcut for the /xldev menu item
if (this.hasDevPlugins)
// If any dev plugin locations exist, allow a shortcut for the /xldev menu item
var hasDevPluginLocations = configuration.DevPluginLoadLocations.Count > 0;
if (hasDevPluginLocations)
{
ImGui.SameLine();
if (ImGui.Button(Locs.FooterButton_ScanDevPlugins))