FIX: fix save privacy policy history
JIRA: STUDIO-11574 Change-Id: I8ebbb917e4b77ff7336967f9520a9447c5919e2c Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
b757e32587
commit
b98dec4c3c
|
@ -4809,7 +4809,7 @@ void GUI_App::save_privacy_policy_history(bool agree, std::string source)
|
||||||
j["time"] = time_str.str();
|
j["time"] = time_str.str();
|
||||||
j["user_id"] = "default_user";
|
j["user_id"] = "default_user";
|
||||||
if (m_agent && agree) {
|
if (m_agent && agree) {
|
||||||
if (!m_agent->get_user_id().empty())
|
if (!m_agent->get_user_id().empty() && m_agent->is_user_login())
|
||||||
j["user_id"] = m_agent->get_user_id();
|
j["user_id"] = m_agent->get_user_id();
|
||||||
m_agent->track_event("privacy_policy", j.dump());
|
m_agent->track_event("privacy_policy", j.dump());
|
||||||
}
|
}
|
||||||
|
|
|
@ -738,7 +738,7 @@ wxBoxSizer *PreferencesDialog::create_item_checkbox(wxString title, wxWindow *pa
|
||||||
agent->track_remove_files();
|
agent->track_remove_files();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
wxGetApp().save_privacy_policy_history(!checkbox->GetValue(), "preferences");
|
wxGetApp().save_privacy_policy_history(checkbox->GetValue(), "preferences");
|
||||||
app_config->save();
|
app_config->save();
|
||||||
}
|
}
|
||||||
else if (param == "auto_stop_liveview") {
|
else if (param == "auto_stop_liveview") {
|
||||||
|
|
Loading…
Reference in New Issue