From f4df690d9f4c19c41322b7f60888ff2b79722279 Mon Sep 17 00:00:00 2001 From: Quantum Date: Mon, 30 Aug 2021 04:47:00 -0400 Subject: [PATCH] [client] egl: fix preset tooltip always showing --- client/renderers/EGL/postprocess.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/renderers/EGL/postprocess.c b/client/renderers/EGL/postprocess.c index 653cfeba..17b4ba94 100644 --- a/client/renderers/EGL/postprocess.c +++ b/client/renderers/EGL/postprocess.c @@ -345,7 +345,8 @@ static bool presetsUI(struct EGL_PostProcess * this) } igEndCombo(); } - igSetTooltip("Selecting a preset will load it"); + if (igIsItemHovered(ImGuiHoveredFlags_None)) + igSetTooltip("Selecting a preset will load it"); if (igButton("Save preset", (ImVec2) { 0.0f, 0.0f })) {