diff --git a/CHANGELOG.md b/CHANGELOG.md index 6efee84..e767768 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ I try to keep this changelog up to date with the latest changes in the project. +## [1.5.2.1] +- just a message fix + ## [1.5.2.0] - better AutoRetainer handling diff --git a/HoardFarm/HoardFarm.csproj b/HoardFarm/HoardFarm.csproj index f6ee3bb..5add1b8 100644 --- a/HoardFarm/HoardFarm.csproj +++ b/HoardFarm/HoardFarm.csproj @@ -2,7 +2,7 @@ Jukkales - 1.5.1.0 + 1.5.2.1 HoardFarm Dalamud Plugin https://github.com/Jukkales/HoardFarm diff --git a/HoardFarm/Windows/MainWindow.cs b/HoardFarm/Windows/MainWindow.cs index a93ea81..474262d 100644 --- a/HoardFarm/Windows/MainWindow.cs +++ b/HoardFarm/Windows/MainWindow.cs @@ -187,14 +187,15 @@ public override void Draw() private void DrawRetainerSettings() { - using (_ = ImRaii.Disabled(!RetainerApi.Ready || !AutoRetainerVersionHighEnough())) + var autoRetainer = RetainerApi.Ready && AutoRetainerVersionHighEnough(); + using (_ = ImRaii.Disabled(!autoRetainer)) { var enabled = Config.DoRetainers; if (ImGui.Checkbox("Do retainers:", ref enabled)) Config.DoRetainers = enabled; } var hoverText = "Ports to Limsa Lominsa and runs retainers between runs if done."; - if (!RetainerApi.Ready) hoverText = "This features requires AutoRetainer 4.2.6.3 or higher to be installed and configured."; + if (!autoRetainer) hoverText = "This features requires AutoRetainer 4.2.6.3 or higher to be installed and configured."; if (ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled)) ImGui.SetTooltip(hoverText);