MCPcopy Create free account
hub / github.com/aiekick/ImGuiFileDialog / m_RemoveFileNameInSelection

Method m_RemoveFileNameInSelection

ImGuiFileDialog.cpp:2297–2305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2295}
2296
2297void IGFD::FileManager::m_RemoveFileNameInSelection(const std::string& vFileName) {
2298 m_SelectedFileNames.erase(vFileName);
2299
2300 if (m_SelectedFileNames.size() == 1) {
2301 snprintf(fileNameBuffer, MAX_FILE_DIALOG_NAME_BUFFER, "%s", vFileName.c_str());
2302 } else {
2303 snprintf(fileNameBuffer, MAX_FILE_DIALOG_NAME_BUFFER, "%zu files Selected", m_SelectedFileNames.size());
2304 }
2305}
2306
2307void IGFD::FileManager::m_AddFileNameInSelection(const std::string& vFileName, bool vSetLastSelectionFileName) {
2308 if (vFileName == "." || vFileName == "..") {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected