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

Method SetPathOnParentDirectoryIfAny

ImGuiFileDialog.cpp:2410–2416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2408}
2409
2410bool IGFD::FileManager::SetPathOnParentDirectoryIfAny() {
2411 if (m_CurrentPathDecomposition.size() > 1) {
2412 m_CurrentPath = ComposeNewPath(m_CurrentPathDecomposition.end() - 2);
2413 return true;
2414 }
2415 return false;
2416}
2417
2418std::string IGFD::FileManager::GetCurrentPath() {
2419 if (m_CurrentPath.empty()) {

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected