fix: show repo button on uninstalled plugins

This commit is contained in:
goat 2020-06-25 21:28:49 +02:00
parent ad93b6324f
commit 03e3d7fe98

View file

@ -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 ==