mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-21 07:59:18 +01:00
fix: show repo button on uninstalled plugins
This commit is contained in:
parent
ad93b6324f
commit
03e3d7fe98
1 changed files with 11 additions and 0 deletions
|
|
@ -125,6 +125,17 @@ namespace Dalamud.Plugin
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!string.IsNullOrEmpty(pluginDefinition.RepoUrl))
|
||||||
|
{
|
||||||
|
ImGui.PushFont(InterfaceManager.IconFont);
|
||||||
|
|
||||||
|
ImGui.SameLine();
|
||||||
|
if (ImGui.Button(FontAwesomeIcon.Globe.ToIconString()) &&
|
||||||
|
pluginDefinition.RepoUrl.StartsWith("https://"))
|
||||||
|
Process.Start(pluginDefinition.Definition.RepoUrl);
|
||||||
|
|
||||||
|
ImGui.PopFont();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
var installedPlugin = this.dalamud.PluginManager.Plugins.Where(x => x.Definition != null).First(
|
var installedPlugin = this.dalamud.PluginManager.Plugins.Where(x => x.Definition != null).First(
|
||||||
x => x.Definition.InternalName ==
|
x => x.Definition.InternalName ==
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue