Skip to content

Commit bb6809a

Browse files
committed
[FIX] : fix in ScanDir (#163)
1 parent 3b69c33 commit bb6809a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

ImGuiFileDialog.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1926,12 +1926,14 @@ void IGFD::FileManager::ScanDir(const FileDialogInternal& vFileDialogInternal, c
19261926

19271927
if (!m_CurrentPathDecomposition.empty()) {
19281928
#ifdef _IGFD_WIN_
1929-
if (path == fsRoot) path += IGFD::Utils::GetPathSeparator();
1929+
if (path == fsRoot) {
1930+
path += IGFD::Utils::GetPathSeparator();
1931+
}
19301932
#endif // _IGFD_WIN_
19311933

19321934
ClearFileLists();
19331935

1934-
const auto& files = m_FileSystemPtr->ScanDirectory(vPath);
1936+
const auto& files = m_FileSystemPtr->ScanDirectory(path);
19351937
for (const auto& file : files) {
19361938
m_AddFile(vFileDialogInternal, path, file.fileNameExt, file.fileType);
19371939
}

0 commit comments

Comments
 (0)