ENH: optimize track logic

Change-Id: I1fea7eb9681389924c32f3754fc77ee21a3ab898
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
Stone Li 2023-03-22 08:38:44 +08:00 committed by Lane.Wei
parent 0a1c597da0
commit 36e0cc0b12
3 changed files with 6 additions and 2 deletions

View file

@ -3954,6 +3954,7 @@ void GUI_App::check_track_enable()
wxString os_desc = wxGetOsDescription();
int major = 0, minor = 0, micro = 0;
header_json["os"] = std::string(os_desc.ToUTF8());
header_json["name"] = std::string(SLIC3R_APP_NAME);
if (m_agent) {
m_agent->track_header(header_json.dump());
m_agent->track_enable(true);