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:
Stone Li 2025-04-15 17:51:42 +08:00 committed by lane.wei
parent b757e32587
commit b98dec4c3c
2 changed files with 2 additions and 2 deletions

View File

@ -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());
} }

View File

@ -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") {