diff --git a/ECommons b/ECommons index 2c01433d..c28878a3 160000 --- a/ECommons +++ b/ECommons @@ -1 +1 @@ -Subproject commit 2c01433dba269cd7624b88e86cc8b74f904b34c7 +Subproject commit c28878a30d62d3cd4b0928bd21aa382d420871b1 diff --git a/RotationSolver/UI/RotationConfigWindow.cs b/RotationSolver/UI/RotationConfigWindow.cs index e6174823..f193b0eb 100644 --- a/RotationSolver/UI/RotationConfigWindow.cs +++ b/RotationSolver/UI/RotationConfigWindow.cs @@ -145,22 +145,17 @@ private static void DrawDutyRotation() private void DrawErrorZone() { var incompatiblePlugins = DownloadHelper.IncompatiblePlugins ?? Array.Empty(); + var installedIncompatiblePlugin = incompatiblePlugins.FirstOrDefault(p => p.IsInstalled && (int)p.Type == 5); - bool hasIncompatiblePlugin = incompatiblePlugins.Any(p => p.IsInstalled); - - if (hasIncompatiblePlugin) + if (installedIncompatiblePlugin.Name != null) { - string message = "Disable incompatible plugin"; - var installedPlugin = incompatiblePlugins.FirstOrDefault(p => p.IsInstalled); - message = $"Disable {installedPlugin.Name}, causes targetting issues."; + string message = $"Disable {installedIncompatiblePlugin.Name}, causes targetting issues."; float availableWidth = ImGui.GetContentRegionAvail().X; // Get the available width dynamically - using (var color = ImRaii.PushColor(ImGuiCol.Text, ImGui.ColorConvertFloat4ToU32(ImGuiColors.DalamudOrange))) - { - ImGui.PushTextWrapPos(ImGui.GetCursorPos().X + availableWidth); // Set text wrapping position dynamically - ImGui.Text(message); - ImGui.PopTextWrapPos(); // Reset text wrapping position - } + using var color = ImRaii.PushColor(ImGuiCol.Text, ImGui.ColorConvertFloat4ToU32(ImGuiColors.DalamudOrange)); + ImGui.PushTextWrapPos(ImGui.GetCursorPos().X + availableWidth); // Set text wrapping position dynamically + ImGui.Text(message); + ImGui.PopTextWrapPos(); // Reset text wrapping position } if (DataCenter.SystemWarnings != null && DataCenter.SystemWarnings.Any())