mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 13:14:17 +01:00
feat: show if plugins are installed in header
This commit is contained in:
parent
e02bca714f
commit
0dd46c50ae
1 changed files with 4 additions and 4 deletions
|
|
@ -77,7 +77,10 @@ namespace Dalamud.Plugin
|
||||||
|
|
||||||
ImGui.PushID(pluginDefinition.InternalName + pluginDefinition.AssemblyVersion);
|
ImGui.PushID(pluginDefinition.InternalName + pluginDefinition.AssemblyVersion);
|
||||||
|
|
||||||
if (ImGui.CollapsingHeader(pluginDefinition.Name)) {
|
var isInstalled = this.manager.Plugins.Where(x => x.Definition != null).Any(
|
||||||
|
x => x.Definition.InternalName == pluginDefinition.InternalName);
|
||||||
|
|
||||||
|
if (ImGui.CollapsingHeader(pluginDefinition.Name + (isInstalled ? " (installed)" : string.Empty))) {
|
||||||
ImGui.Indent();
|
ImGui.Indent();
|
||||||
|
|
||||||
ImGui.Text(pluginDefinition.Name);
|
ImGui.Text(pluginDefinition.Name);
|
||||||
|
|
@ -86,9 +89,6 @@ namespace Dalamud.Plugin
|
||||||
|
|
||||||
ImGui.Text(pluginDefinition.Description);
|
ImGui.Text(pluginDefinition.Description);
|
||||||
|
|
||||||
var isInstalled = this.manager.Plugins.Where(x => x.Definition != null).Any(
|
|
||||||
x => x.Definition.InternalName == pluginDefinition.InternalName);
|
|
||||||
|
|
||||||
if (!isInstalled) {
|
if (!isInstalled) {
|
||||||
if (this.installStatus == PluginInstallStatus.InProgress) {
|
if (this.installStatus == PluginInstallStatus.InProgress) {
|
||||||
ImGui.Button("Install in progress...");
|
ImGui.Button("Install in progress...");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue