Add recent file and projects to FileBrowser

This commit is contained in:
Phillip Stephens 2016-02-01 19:48:27 -08:00
parent 297c59df2d
commit b040c8972c
1 changed files with 12 additions and 0 deletions

View File

@ -83,6 +83,18 @@ FileBrowser::FileBrowser(ViewResources& res, View& parentView, const std::string
m_systemBookmarkBind.m_entries.emplace_back(std::move(loc));
m_systemBookmarks.m_view->updateData();
const std::vector<HECL::SystemString>* recentProjects = vm.recentProjects();
for (auto& proj : *recentProjects)
m_projectBookmarkBind.m_entries.emplace_back(proj);
m_projectBookmarks.m_view->updateData();
const std::vector<HECL::SystemString>* recentFiles = vm.recentFiles();
for (auto& file : *recentFiles)
m_recentBookmarkBind.m_entries.emplace_back(file);
m_recentBookmarks.m_view->updateData();
navigateToPath(initialPath);
m_split.m_view.reset(new SplitView(res, *this, nullptr, SplitView::Axis::Vertical, 0.2,