mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-21 05:37:52 -06:00
Do not load ssl certificate when starting standalone gcode viewer
This commit is contained in:
parent
e613eeed48
commit
8d3b4275ca
1 changed files with 20 additions and 14 deletions
|
@ -708,6 +708,9 @@ bool GUI_App::on_init_inner()
|
||||||
|
|
||||||
// Slic3r::debugf "wxWidgets version %s, Wx version %s\n", wxVERSION_STRING, wxVERSION;
|
// Slic3r::debugf "wxWidgets version %s, Wx version %s\n", wxVERSION_STRING, wxVERSION;
|
||||||
|
|
||||||
|
#if ENABLE_GCODE_VIEWER
|
||||||
|
if (is_editor()) {
|
||||||
|
#endif // ENABLE_GCODE_VIEWER
|
||||||
std::string msg = Http::tls_global_init();
|
std::string msg = Http::tls_global_init();
|
||||||
std::string ssl_cert_store = app_config->get("tls_accepted_cert_store_location");
|
std::string ssl_cert_store = app_config->get("tls_accepted_cert_store_location");
|
||||||
bool ssl_accept = app_config->get("tls_cert_store_accepted") == "yes" && ssl_cert_store == Http::tls_system_cert_store();
|
bool ssl_accept = app_config->get("tls_cert_store_accepted") == "yes" && ssl_cert_store == Http::tls_system_cert_store();
|
||||||
|
@ -725,6 +728,9 @@ bool GUI_App::on_init_inner()
|
||||||
app_config->set("tls_accepted_cert_store_location",
|
app_config->set("tls_accepted_cert_store_location",
|
||||||
dlg.IsCheckBoxChecked() ? Http::tls_system_cert_store() : "");
|
dlg.IsCheckBoxChecked() ? Http::tls_system_cert_store() : "");
|
||||||
}
|
}
|
||||||
|
#if ENABLE_GCODE_VIEWER
|
||||||
|
}
|
||||||
|
#endif // ENABLE_GCODE_VIEWER
|
||||||
|
|
||||||
app_config->set("version", SLIC3R_VERSION);
|
app_config->set("version", SLIC3R_VERSION);
|
||||||
app_config->save();
|
app_config->save();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue