FIX: [STUDIO-2608] recent project not open starting from number 10

Change-Id: I9e867f26342993cae7a98d6e8b61e9c21b4f434c
This commit is contained in:
chunmao.guo 2023-05-15 13:53:13 +08:00 committed by Lane.Wei
parent 187718890f
commit 56b9d0fbb3
1 changed files with 1 additions and 1 deletions

View File

@ -2052,7 +2052,7 @@ void MainFrame::init_menubar_as_editor()
size_t file_id = evt.GetId() - wxID_FILE1;
wxString filename = m_recent_projects.GetHistoryFile(file_id);
open_recent_project(file_id, filename);
}, wxID_FILE1, wxID_FILE9);
}, wxID_FILE1, wxID_FILE1 + 49); // [5050, 5100)
std::vector<std::string> recent_projects = wxGetApp().app_config->get_recent_projects();
std::reverse(recent_projects.begin(), recent_projects.end());