build: deploy changes

* moved sample projects from data to user folder
* added fallback files for app and window settings
* implemented copying app and window settings to user folder when not found on app startup
* fixed upgrading for windows installer
This commit is contained in:
malte_langkabel
2016-12-14 13:33:17 +01:00
parent 68a2cb08bc
commit 5482e56e82
191 changed files with 279 additions and 241 deletions
+8
View File
@@ -3,6 +3,7 @@
#include "utility/ResourcePaths.h"
#include "utility/Status.h"
#include "utility/utility.h"
#include "utility/UserPaths.h"
const size_t ApplicationSettings::VERSION = 1;
@@ -307,7 +308,14 @@ std::vector<FilePath> ApplicationSettings::getRecentProjects() const
for (FilePath project: loadedRecentProjects)
{
if (project.isAbsolute())
{
recentProjects.push_back(project);
}
else
{
recentProjects.push_back(UserPaths::getSampleProjectsPath() + project.str());
}
}
return recentProjects;
}