logic: Fixed python sample migration removed last recent project
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user