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