mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
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:
parent
dd47147538
commit
cd03ef7d02
1 changed files with 4 additions and 2 deletions
|
|
@ -283,6 +283,7 @@ internal class PluginInstallerWindow : Window, IDisposable
|
||||||
var pluginManager = Service<PluginManager>.Get();
|
var pluginManager = Service<PluginManager>.Get();
|
||||||
|
|
||||||
_ = pluginManager.ReloadPluginMastersAsync();
|
_ = pluginManager.ReloadPluginMastersAsync();
|
||||||
|
Service<PluginManager>.Get().ScanDevPlugins();
|
||||||
|
|
||||||
if (!this.isSearchTextPrefilled) this.searchText = string.Empty;
|
if (!this.isSearchTextPrefilled) this.searchText = string.Empty;
|
||||||
this.sortKind = PluginSortKind.Alphabetical;
|
this.sortKind = PluginSortKind.Alphabetical;
|
||||||
|
|
@ -755,8 +756,9 @@ internal class PluginInstallerWindow : Window, IDisposable
|
||||||
Service<DalamudInterface>.Get().OpenSettings();
|
Service<DalamudInterface>.Get().OpenSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
// If any dev plugins are installed, allow a shortcut for the /xldev menu item
|
// If any dev plugin locations exist, allow a shortcut for the /xldev menu item
|
||||||
if (this.hasDevPlugins)
|
var hasDevPluginLocations = configuration.DevPluginLoadLocations.Count > 0;
|
||||||
|
if (hasDevPluginLocations)
|
||||||
{
|
{
|
||||||
ImGui.SameLine();
|
ImGui.SameLine();
|
||||||
if (ImGui.Button(Locs.FooterButton_ScanDevPlugins))
|
if (ImGui.Button(Locs.FooterButton_ScanDevPlugins))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue