fix(settings-refactor): show HelpMarker tooltip even when item is disabled
This commit is contained in:
@@ -225,7 +225,11 @@ internal static class ImGuiUtil
|
||||
using (ImRaii.PushColor(ImGuiCol.Text, ImGui.GetStyle().Colors[(int) ImGuiCol.TextDisabled]))
|
||||
ImGui.TextUnformatted("(?)");
|
||||
|
||||
if (!ImGui.IsItemHovered())
|
||||
// AllowWhenDisabled — ohne das Flag liefert IsItemHovered bei
|
||||
// ausgegrauten Settings false, der User könnte nicht mehr lesen
|
||||
// warum eine Option nicht aktiv ist. Genau dann braucht er den
|
||||
// Hover-Tooltip aber am dringendsten.
|
||||
if (!ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled))
|
||||
return;
|
||||
|
||||
using var tooltip = ImRaii.Tooltip();
|
||||
|
||||
Reference in New Issue
Block a user