From 03e3d7fe9878ecc76021c296f89a28f8aa791c0e Mon Sep 17 00:00:00 2001 From: goat <16760685+goaaats@users.noreply.github.com> Date: Thu, 25 Jun 2020 21:28:49 +0200 Subject: [PATCH] fix: show repo button on uninstalled plugins --- Dalamud/Plugin/PluginInstallerWindow.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Dalamud/Plugin/PluginInstallerWindow.cs b/Dalamud/Plugin/PluginInstallerWindow.cs index a82dd16fb..ce9484d8c 100644 --- a/Dalamud/Plugin/PluginInstallerWindow.cs +++ b/Dalamud/Plugin/PluginInstallerWindow.cs @@ -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 ==