mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 05:04:15 +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 {
|
||||
var installedPlugin = this.dalamud.PluginManager.Plugins.Where(x => x.Definition != null).First(
|
||||
x => x.Definition.InternalName ==
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue