We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cecd225 + 37b4b89 commit d8a273dCopy full SHA for d8a273d
1 file changed
ImGuiFileDialog.cpp
@@ -1510,13 +1510,12 @@ namespace IGFD
1510
if (ImGui::IsMouseDoubleClicked(0)) // 0 -> left mouse button double click
1511
{
1512
m_PathClicked = SelectDirectory(vInfos);
1513
+ return true; // needToBreakTheloop
1514
}
1515
else if (dlg_filters.empty()) // directory chooser
1516
1517
SelectFileName(vInfos);
1518
-
1519
- return true; // needToBreakTheloop
1520
1521
else
1522
@@ -1615,10 +1614,12 @@ namespace IGFD
1615
1614
1616
std::string selectedDirectory = FileNameBuffer;
1617
if (!selectedDirectory.empty() && selectedDirectory != ".")
+ {
1618
if (path.empty())
1619
path = selectedDirectory;
1620
1621
path += PATH_SEP + selectedDirectory;
1622
+ }
1623
1624
1625
return path;
0 commit comments