FIX: privacyuse should be false when skip

JIRA:STUDIO-5773

Signed-off-by: Kunlong Ma <kunlong.ma@bambulab.com>
Change-Id: I894f946ad627203d4378f82e826006fd73517537
This commit is contained in:
Kunlong Ma 2024-01-03 17:18:52 +08:00 committed by Lane.Wei
parent d73171da9d
commit 014a6694d9
2 changed files with 3 additions and 3 deletions

View File

@ -1061,7 +1061,7 @@ wxWindow* PreferencesDialog::create_general_page()
auto title_user_experience = create_item_title(_L("User Experience"), page, _L("User Experience"));
auto item_priv_policy = create_item_checkbox(_L("Join Customer Experience Improvement Program."), page, _L(""), 50, "privacyuse");
wxHyperlinkCtrl* hyperlink = new wxHyperlinkCtrl(page, wxID_ANY, "What data would be collected?", "https://bambulab.com/en/policies/privacy");
wxHyperlinkCtrl* hyperlink = new wxHyperlinkCtrl(page, wxID_ANY, _L("What data would be collected?"), "https://bambulab.com/en/policies/privacy");
hyperlink->SetFont(Label::Head_13);
item_priv_policy->Add(hyperlink, 0, wxALIGN_CENTER, 0);

View File

@ -574,9 +574,9 @@ int GuideFrame::SaveProfile()
{
//privacy
if (PrivacyUse == true) {
m_MainPtr->app_config->set(std::string(m_SectionName.mb_str()), "privacyuse", "1");
m_MainPtr->app_config->set(std::string(m_SectionName.mb_str()), "privacyuse", true);
} else
m_MainPtr->app_config->set(std::string(m_SectionName.mb_str()), "privacyuse", "0");
m_MainPtr->app_config->set(std::string(m_SectionName.mb_str()), "privacyuse", false);
m_MainPtr->app_config->set("region", m_Region);