FIX: [STUDIO-2865] only send changed thubmails to home page

Change-Id: I88ae0dd3a47c4cf02bf97978a22fd72ed0ef0299
This commit is contained in:
chunmao.guo 2023-05-18 18:42:50 +08:00 committed by Lane.Wei
parent 1cde1ebaed
commit dfd049374c
6 changed files with 18 additions and 14 deletions

View file

@ -414,12 +414,12 @@ void WebViewPanel::OnFreshLoginStatus(wxTimerEvent &event)
Slic3r::GUI::wxGetApp().get_login_info();
}
void WebViewPanel::SendRecentList(wxString const &sequence_id)
void WebViewPanel::SendRecentList(int images)
{
boost::property_tree::wptree req;
boost::property_tree::wptree data;
wxGetApp().mainframe->get_recent_projects(data);
req.put(L"sequence_id", sequence_id);
wxGetApp().mainframe->get_recent_projects(data, images);
req.put(L"sequence_id", "");
req.put(L"command", L"get_recent_projects");
req.put_child(L"response", data);
std::wostringstream oss;