Skip to content

Commit d8ce36c

Browse files
committed
[FIX] : fix flashing selectable
1 parent 2d05f17 commit d8ce36c

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

ImGuiFileDialog.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3619,13 +3619,18 @@ namespace IGFD
36193619
if (selected != was_selected) //-V547
36203620
g.LastItemData.StatusFlags |= ImGuiItemStatusFlags_ToggledSelection;
36213621

3622+
//////////////////////////////////////////////////////////////////
3623+
// this function copy ImGui::Selectable just for this line....
3624+
hovered |= vFlashing;
3625+
//////////////////////////////////////////////////////////////////
3626+
36223627
// Render
3623-
if (hovered || selected || vFlashing)
3628+
if (hovered || selected)
36243629
{
36253630
const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header);
36263631
RenderFrame(bb.Min, bb.Max, col, false, 0.0f);
36273632
}
3628-
RenderNavHighlight(bb, id, ImGuiNavHighlightFlags_TypeThin | ImGuiNavHighlightFlags_NoRounding);
3633+
//RenderNavHighlight(bb, id, ImGuiNavHighlightFlags_TypeThin | ImGuiNavHighlightFlags_NoRounding);
36293634

36303635
if (span_all_columns && window->DC.CurrentColumns)
36313636
PopColumnsBackground();

0 commit comments

Comments
 (0)