From cd03ef7d02ac19aebaf5da1acbc7fdadb2122e64 Mon Sep 17 00:00:00 2001 From: nil <25884226+voidstar0@users.noreply.github.com> Date: Fri, 28 Feb 2025 20:37:58 -0500 Subject: [PATCH] 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 --- .../Windows/PluginInstaller/PluginInstallerWindow.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginInstallerWindow.cs b/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginInstallerWindow.cs index d01063156..66f338586 100644 --- a/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginInstallerWindow.cs +++ b/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginInstallerWindow.cs @@ -283,6 +283,7 @@ public override void OnOpen() var pluginManager = Service.Get(); _ = pluginManager.ReloadPluginMastersAsync(); + Service.Get().ScanDevPlugins(); if (!this.isSearchTextPrefilled) this.searchText = string.Empty; this.sortKind = PluginSortKind.Alphabetical; @@ -755,8 +756,9 @@ private void DrawFooter() Service.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))