2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 01:07:43 +00:00

Recent projects functionality

This commit is contained in:
Jack Andersen
2016-01-15 17:58:11 -10:00
parent 342fc4a00c
commit 877a389da6
6 changed files with 75 additions and 7 deletions

View File

@@ -99,6 +99,9 @@ bool ProjectManager::openProject(const HECL::SystemString& path)
m_vm.m_mainWindow->setTitle(m_proj->getProjectRootPath().getLastComponent());
m_vm.DismissSplash();
m_vm.FadeInEditors();
m_vm.pushRecentProject(m_proj->getProjectRootPath().getAbsolutePath());
return true;
makeDefault:
@@ -164,6 +167,8 @@ bool ProjectManager::saveProject()
HECL::Rename(oldSpacesPath.getAbsolutePath().c_str(),
newSpacesPath.getAbsolutePath().c_str());
m_vm.pushRecentProject(m_proj->getProjectRootPath().getAbsolutePath());
return true;
}