MCPcopy Create free account
hub / github.com/chrxh/alien / Close

Method Close

external/ImFileDialog/ImFileDialog.cpp:515–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513 return isMe && !m_isOpen;
514 }
515 void FileDialog::Close()
516 {
517 m_currentKey.clear();
518 m_backHistory = std::stack<std::filesystem::path>();
519 m_forwardHistory = std::stack<std::filesystem::path>();
520
521 // clear the tree
522 for (auto fn : m_treeCache) {
523 for (auto item : fn->Children) {
524 for (auto ch : item->Children)
525 m_clearTree(ch);
526 item->Children.clear();
527 item->Read = false;
528 }
529 }
530
531 // free icon textures
532 m_clearIconPreview();
533 m_clearIcons();
534 }
535
536 void FileDialog::RemoveFavorite(const std::string& path)
537 {

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected