Skip to content

Commit 2b77954

Browse files
committed
[FIX] : fix size display of 0 bytes size files. now show "0 o" instead of nothing
1 parent f55f38b commit 2b77954

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ImGuiFileDialog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2042,9 +2042,9 @@ std::string IGFD::FileManager::m_FormatFileSize(size_t vByteSize) {
20422042
return m_RoundNumber(v / ko, 2) + " " + fileSizeMegaBytes; // Mo
20432043
else
20442044
return m_RoundNumber(v / mo, 2) + " " + fileSizeGigaBytes; // Go
2045-
}
2045+
}
20462046

2047-
return "";
2047+
return "0 " fileSizeBytes;
20482048
}
20492049

20502050
void IGFD::FileManager::m_CompleteFileInfos(const std::shared_ptr<FileInfos>& vInfos) {

0 commit comments

Comments
 (0)