Skip to content

Commit

Permalink
fix: always scan for dev plugins when opening the plugin installer (#…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
voidstar0 authored Mar 1, 2025
1 parent dd47147 commit cd03ef7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ public override void OnOpen()
var pluginManager = Service<PluginManager>.Get();

_ = pluginManager.ReloadPluginMastersAsync();
Service<PluginManager>.Get().ScanDevPlugins();

if (!this.isSearchTextPrefilled) this.searchText = string.Empty;
this.sortKind = PluginSortKind.Alphabetical;
Expand Down Expand Up @@ -755,8 +756,9 @@ private void DrawFooter()
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))
Expand Down

0 comments on commit cd03ef7

Please sign in to comment.