fix(pi): only show testing context menu if testing is on

This commit is contained in:
goat 2022-11-06 15:28:22 +01:00
parent a31a17018f
commit 4675d77a2d
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B

View file

@ -2127,6 +2127,8 @@ internal class PluginInstallerWindow : Window, IDisposable
var configuration = Service<DalamudConfiguration>.Get();
if (ImGui.BeginPopupContextItem("InstalledItemContextMenu"))
{
if (configuration.DoPluginTest)
{
var repoManifest = this.pluginListAvailable.FirstOrDefault(x => x.InternalName == plugin.Manifest.InternalName);
if (repoManifest?.IsTestingExclusive == true)
@ -2153,6 +2155,7 @@ internal class PluginInstallerWindow : Window, IDisposable
if (repoManifest?.IsTestingExclusive == true)
ImGui.EndDisabled();
}
if (ImGui.MenuItem(Locs.PluginContext_DeletePluginConfigReload))
{