Skip to content

Commit

Permalink
message fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jukkales committed Apr 19, 2024
1 parent 2bdd0e8 commit 19af96f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion HoardFarm/HoardFarm.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Authors>Jukkales</Authors>
<Version>1.5.1.0</Version>
<Version>1.5.2.1</Version>
<Description>HoardFarm Dalamud Plugin</Description>
<PackageProjectUrl>https://github.com/Jukkales/HoardFarm</PackageProjectUrl>
</PropertyGroup>
Expand Down
5 changes: 3 additions & 2 deletions HoardFarm/Windows/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 19af96f

Please sign in to comment.