@@ -450,7 +450,7 @@ void Application::updateRecentProjects(const FilePath& projectSettingsFilePath)
|
||||
}
|
||||
|
||||
recentProjects.insert(recentProjects.begin(), projectSettingsFilePath);
|
||||
while (static_cast<int>(recentProjects.size()) > appSettings->getMaxRecentProjectsCount())
|
||||
while (recentProjects.size() > appSettings->getMaxRecentProjectsCount())
|
||||
{
|
||||
recentProjects.pop_back();
|
||||
}
|
||||
|
||||
@@ -138,7 +138,7 @@ bool ApplicationSettings::operator==(const ApplicationSettings& other) const
|
||||
utility::isPermutation<FilePath>(getFrameworkSearchPaths(), other.getFrameworkSearchPaths());
|
||||
}
|
||||
|
||||
int ApplicationSettings::getMaxRecentProjectsCount() const
|
||||
size_t ApplicationSettings::getMaxRecentProjectsCount() const
|
||||
{
|
||||
return 7;
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ public:
|
||||
|
||||
bool operator==(const ApplicationSettings& other) const;
|
||||
|
||||
int getMaxRecentProjectsCount() const;
|
||||
size_t getMaxRecentProjectsCount() const;
|
||||
|
||||
// application
|
||||
std::string getFontName() const;
|
||||
|
||||
Reference in New Issue
Block a user