logic: Fixed python sample migration removed last recent project

This commit is contained in:
Eberhard Graether
2019-05-07 17:10:57 +02:00
parent 3106257692
commit 0e01a9b200
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -485,7 +485,7 @@ void Application::updateRecentProjects(const FilePath& projectSettingsFilePath)
}
recentProjects.insert(recentProjects.begin(), projectSettingsFilePath);
while (recentProjects.size() > 7)
while (recentProjects.size() > appSettings->getMaxRecentProjectsCount())
{
recentProjects.pop_back();
}
-1
View File
@@ -88,7 +88,6 @@ bool ApplicationSettings::load(const FilePath& filePath, bool readOnly)
utility::append(recentProjects, migration->getValuesFromSettings(
settings, "user/recent_projects/recent_project", std::vector<std::string>())
);
recentProjects.pop_back();
for (size_t i = 0; i < recentProjects.size(); i++)
{