FIX: send recent projects on login info msg on macOS

Jira: STUDIO-8648
Change-Id: Id6b7817b051234bb9e9d5c3b9afc7982b3d3cbd6
This commit is contained in:
chunmao.guo 2024-11-11 19:46:19 +08:00 committed by Lane.Wei
parent 8e14262be2
commit 69e25831e1
1 changed files with 8 additions and 0 deletions

View File

@ -4069,6 +4069,14 @@ std::string GUI_App::handle_web_request(std::string cmd)
CallAfter([this] {
get_login_info();
});
// TODO: Fix home page not emit get_recent_projects on macOS
#ifdef __WXOSX__
if (mainframe) {
if (mainframe->m_webview) {
mainframe->m_webview->SendRecentList(INT_MAX);
}
}
#endif
}
else if (command_str.compare("homepage_login_or_register") == 0) {