mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
check for testing api level in HasTestingVersion() instead
This commit is contained in:
parent
a4a3318a6e
commit
8d08f46fd7
2 changed files with 5 additions and 5 deletions
|
|
@ -2274,7 +2274,7 @@ internal class PluginInstallerWindow : Window, IDisposable
|
|||
if (useTesting || manifest.IsTestingExclusive)
|
||||
flags |= PluginHeaderFlags.IsTesting;
|
||||
|
||||
if (this.DrawPluginCollapsingHeader(label, null, manifest, flags, () => this.DrawAvailablePluginContextMenu(manifest, effectiveApiLevel), index))
|
||||
if (this.DrawPluginCollapsingHeader(label, null, manifest, flags, () => this.DrawAvailablePluginContextMenu(manifest), index))
|
||||
{
|
||||
if (!wasSeen)
|
||||
configuration.SeenPluginInternalName.Add(manifest.InternalName);
|
||||
|
|
@ -2352,14 +2352,13 @@ internal class PluginInstallerWindow : Window, IDisposable
|
|||
ImGui.PopID();
|
||||
}
|
||||
|
||||
private void DrawAvailablePluginContextMenu(RemotePluginManifest manifest, int effectiveApiLevel)
|
||||
private void DrawAvailablePluginContextMenu(RemotePluginManifest manifest)
|
||||
{
|
||||
var configuration = Service<DalamudConfiguration>.Get();
|
||||
var pluginManager = Service<PluginManager>.Get();
|
||||
|
||||
var hasTestingVersionAvailable = configuration.DoPluginTest &&
|
||||
PluginManager.HasTestingVersion(manifest) &&
|
||||
manifest.TestingDalamudApiLevel == effectiveApiLevel;
|
||||
PluginManager.HasTestingVersion(manifest);
|
||||
|
||||
if (ImGui.BeginPopupContextItem("ItemContextMenu"))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -281,7 +281,8 @@ internal class PluginManager : IInternalDisposableService
|
|||
|
||||
if (hasTv)
|
||||
{
|
||||
return tv > av;
|
||||
return tv > av &&
|
||||
manifest.TestingDalamudApiLevel == DalamudApiLevel;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue