fix: check if plugin is available when sending feedback

This commit is contained in:
goaaats 2021-10-08 18:55:08 +02:00
parent 6ce5b16280
commit c5ec3f9b62
No known key found for this signature in database
GPG key ID: F18F057873895461
2 changed files with 3 additions and 2 deletions

View file

@ -173,7 +173,7 @@ namespace Dalamud.Injector
writer.BaseStream.SetLength(total);
}
catch (Exception ex)
catch (Exception)
{
/*
var caption = "XIVLauncher Error";

View file

@ -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);
}