privacy: disable Bambu cloud telemetry before DLL start() (#13898)
* privacy: disable Bambu cloud telemetry before DLL start()
This commit is contained in:
@@ -582,21 +582,22 @@ int NetworkAgent::get_my_token(std::string ticket, unsigned int* http_code, std:
|
||||
return -1;
|
||||
}
|
||||
|
||||
int NetworkAgent::track_enable(bool enable, const std::string& provider)
|
||||
int NetworkAgent::track_enable(bool enable)
|
||||
{
|
||||
this->enable_track = enable;
|
||||
const auto cloud_agent = get_cloud_agent(provider);
|
||||
// Orca cloud has no telemetry; the only cloud agent that tracks events is BBL.
|
||||
this->enable_track = enable;
|
||||
const auto cloud_agent = get_cloud_agent(BBL_CLOUD_PROVIDER);
|
||||
if (cloud_agent)
|
||||
return cloud_agent->track_enable(enable);
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int NetworkAgent::track_remove_files(const std::string& provider)
|
||||
int NetworkAgent::track_remove_files()
|
||||
{
|
||||
const auto cloud_agent = get_cloud_agent(provider);
|
||||
const auto cloud_agent = get_cloud_agent(BBL_CLOUD_PROVIDER);
|
||||
if (cloud_agent)
|
||||
return cloud_agent->track_remove_files();
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int NetworkAgent::track_event(std::string evt_key, std::string content, const std::string& provider)
|
||||
|
||||
Reference in New Issue
Block a user