mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
fix(pi): only show testing context menu if testing is on
This commit is contained in:
parent
a31a17018f
commit
4675d77a2d
1 changed files with 21 additions and 18 deletions
|
|
@ -2127,6 +2127,8 @@ internal class PluginInstallerWindow : Window, IDisposable
|
||||||
var configuration = Service<DalamudConfiguration>.Get();
|
var configuration = Service<DalamudConfiguration>.Get();
|
||||||
|
|
||||||
if (ImGui.BeginPopupContextItem("InstalledItemContextMenu"))
|
if (ImGui.BeginPopupContextItem("InstalledItemContextMenu"))
|
||||||
|
{
|
||||||
|
if (configuration.DoPluginTest)
|
||||||
{
|
{
|
||||||
var repoManifest = this.pluginListAvailable.FirstOrDefault(x => x.InternalName == plugin.Manifest.InternalName);
|
var repoManifest = this.pluginListAvailable.FirstOrDefault(x => x.InternalName == plugin.Manifest.InternalName);
|
||||||
if (repoManifest?.IsTestingExclusive == true)
|
if (repoManifest?.IsTestingExclusive == true)
|
||||||
|
|
@ -2153,6 +2155,7 @@ internal class PluginInstallerWindow : Window, IDisposable
|
||||||
|
|
||||||
if (repoManifest?.IsTestingExclusive == true)
|
if (repoManifest?.IsTestingExclusive == true)
|
||||||
ImGui.EndDisabled();
|
ImGui.EndDisabled();
|
||||||
|
}
|
||||||
|
|
||||||
if (ImGui.MenuItem(Locs.PluginContext_DeletePluginConfigReload))
|
if (ImGui.MenuItem(Locs.PluginContext_DeletePluginConfigReload))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue