mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix: check if plugin is available when sending feedback
This commit is contained in:
parent
6ce5b16280
commit
c5ec3f9b62
2 changed files with 3 additions and 2 deletions
|
|
@ -173,7 +173,7 @@ namespace Dalamud.Injector
|
||||||
|
|
||||||
writer.BaseStream.SetLength(total);
|
writer.BaseStream.SetLength(total);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
var caption = "XIVLauncher Error";
|
var caption = "XIVLauncher Error";
|
||||||
|
|
|
||||||
|
|
@ -1401,6 +1401,7 @@ namespace Dalamud.Interface.Internal.Windows
|
||||||
ImGui.TextColored(ImGuiColors.DalamudGrey3, downloadText);
|
ImGui.TextColored(ImGuiColors.DalamudGrey3, downloadText);
|
||||||
|
|
||||||
var isThirdParty = manifest.IsThirdParty;
|
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
|
// Installed from
|
||||||
if (plugin.IsDev)
|
if (plugin.IsDev)
|
||||||
|
|
@ -1457,7 +1458,7 @@ namespace Dalamud.Interface.Internal.Windows
|
||||||
this.DrawDeletePluginButton(plugin);
|
this.DrawDeletePluginButton(plugin);
|
||||||
this.DrawVisitRepoUrlButton(plugin.Manifest.RepoUrl);
|
this.DrawVisitRepoUrlButton(plugin.Manifest.RepoUrl);
|
||||||
|
|
||||||
if (!isThirdParty && !plugin.IsDev)
|
if (canFeedback)
|
||||||
{
|
{
|
||||||
this.DrawSendFeedbackButton(plugin.Manifest);
|
this.DrawSendFeedbackButton(plugin.Manifest);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue