MCPcopy Create free account
hub / github.com/dfranx/SHADERed / Close

Method Close

libs/misc/ImFileDialog.cpp:513–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected