mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX: support maximum 999 recent projects
Change-Id: I2465990583a1295f40e3c4c6ef9237657e38a91c Jira: STUDIO-9107 (cherry picked from commit d29fa512acd0c21255fbf8d6f5f0488214677e83)
This commit is contained in:
@@ -3194,7 +3194,7 @@ void MainFrame::init_menubar_as_editor()
|
||||
|
||||
void MainFrame::set_max_recent_count(int max)
|
||||
{
|
||||
max = max < 0 ? 0 : max > 10000 ? 10000 : max;
|
||||
max = max < 0 ? 0 : max > 999 ? 999 : max;
|
||||
size_t count = m_recent_projects.GetCount();
|
||||
m_recent_projects.SetMaxFiles(max);
|
||||
if (count != m_recent_projects.GetCount()) {
|
||||
|
||||
Reference in New Issue
Block a user