ui: Refactored recent projects menu (#956)

fixes #848
This commit is contained in:
Eberhard Gräther
2020-04-02 12:30:30 +02:00
committed by GitHub
parent 5a4de2d46a
commit 0c577f2f69
7 changed files with 26 additions and 44 deletions
+1 -1
View File
@@ -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();
}
+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -22,7 +22,7 @@ public:
bool operator==(const ApplicationSettings& other) const;
int getMaxRecentProjectsCount() const;
size_t getMaxRecentProjectsCount() const;
// application
std::string getFontName() const;