From c5ec3f9b620328704fdeaa07faff063200a711f0 Mon Sep 17 00:00:00 2001 From: goaaats <16760685+goaaats@users.noreply.github.com> Date: Fri, 8 Oct 2021 18:55:08 +0200 Subject: [PATCH] fix: check if plugin is available when sending feedback --- Dalamud.Injector/EntryPoint.cs | 2 +- Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dalamud.Injector/EntryPoint.cs b/Dalamud.Injector/EntryPoint.cs index 48463a2e8..adf84d923 100644 --- a/Dalamud.Injector/EntryPoint.cs +++ b/Dalamud.Injector/EntryPoint.cs @@ -173,7 +173,7 @@ namespace Dalamud.Injector writer.BaseStream.SetLength(total); } - catch (Exception ex) + catch (Exception) { /* var caption = "XIVLauncher Error"; diff --git a/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs b/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs index d2579c2d7..16dfbc898 100644 --- a/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs +++ b/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs @@ -1401,6 +1401,7 @@ namespace Dalamud.Interface.Internal.Windows ImGui.TextColored(ImGuiColors.DalamudGrey3, downloadText); var isThirdParty = manifest.IsThirdParty; + var canFeedback = !isThirdParty && !plugin.IsDev && this.pluginListAvailable.Any(x => x.InternalName == plugin.Manifest.InternalName) && plugin.Manifest.DalamudApiLevel == PluginManager.DalamudApiLevel; // Installed from if (plugin.IsDev) @@ -1457,7 +1458,7 @@ namespace Dalamud.Interface.Internal.Windows this.DrawDeletePluginButton(plugin); this.DrawVisitRepoUrlButton(plugin.Manifest.RepoUrl); - if (!isThirdParty && !plugin.IsDev) + if (canFeedback) { this.DrawSendFeedbackButton(plugin.Manifest); }