Retainers can now be disabled if they're under the minimum level (but not enabled)

This commit is contained in:
Liza 2024-07-28 17:58:45 +02:00
parent 8f6b38a3e8
commit a3489c1633
Signed by: liza
GPG Key ID: 7199F8D727D55F67
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
<Project Sdk="Dalamud.NET.Sdk/9.0.2">
<PropertyGroup>
<Version>5.5</Version>
<Version>5.6</Version>
<OutputPath>dist</OutputPath>
</PropertyGroup>

View File

@ -175,9 +175,9 @@ internal sealed class RetainersTab : ITab
.OrderBy(x => x.DisplayOrder)
.ThenBy(x => x.RetainerContentId))
{
ImGui.BeginDisabled(retainer.Level < ConfigWindow.MinLevel);
ImGui.BeginDisabled(retainer is { Managed: false, Level: < ConfigWindow.MinLevel });
bool managed = retainer is { Managed: true, Level: >= ConfigWindow.MinLevel };
bool managed = retainer.Managed;
IDalamudTextureWrap? icon = _iconCache.GetIcon(62000 + retainer.Job);
if (icon != null)