From 9250044c60923252d8fa1a622dde4042d801f94c Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Sun, 28 Jul 2024 17:58:45 +0200 Subject: [PATCH] Retainers can now be disabled if they're under the minimum level (but not enabled) --- ARControl/ARControl.csproj | 2 +- ARControl/Windows/Config/RetainersTab.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ARControl/ARControl.csproj b/ARControl/ARControl.csproj index 688b18b..f86814f 100644 --- a/ARControl/ARControl.csproj +++ b/ARControl/ARControl.csproj @@ -1,6 +1,6 @@ - 5.5 + 5.6 dist diff --git a/ARControl/Windows/Config/RetainersTab.cs b/ARControl/Windows/Config/RetainersTab.cs index 015c0c0..5040566 100644 --- a/ARControl/Windows/Config/RetainersTab.cs +++ b/ARControl/Windows/Config/RetainersTab.cs @@ -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)