Skip to content

Commit d8a273d

Browse files
authored
Merge pull request #62 from jvannugteren/Lib_Only
Fix graphical glitch on single clicking items issue #61
2 parents cecd225 + 37b4b89 commit d8a273d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

ImGuiFileDialog.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,13 +1510,12 @@ namespace IGFD
15101510
if (ImGui::IsMouseDoubleClicked(0)) // 0 -> left mouse button double click
15111511
{
15121512
m_PathClicked = SelectDirectory(vInfos);
1513+
return true; // needToBreakTheloop
15131514
}
15141515
else if (dlg_filters.empty()) // directory chooser
15151516
{
15161517
SelectFileName(vInfos);
15171518
}
1518-
1519-
return true; // needToBreakTheloop
15201519
}
15211520
else
15221521
{
@@ -1615,10 +1614,12 @@ namespace IGFD
16151614
{
16161615
std::string selectedDirectory = FileNameBuffer;
16171616
if (!selectedDirectory.empty() && selectedDirectory != ".")
1617+
{
16181618
if (path.empty())
16191619
path = selectedDirectory;
16201620
else
16211621
path += PATH_SEP + selectedDirectory;
1622+
}
16221623
}
16231624

16241625
return path;

0 commit comments

Comments
 (0)