FIX: fix crash when loading a 3mf

fix plate name encoding issue in Object List

Change-Id: I7d5a3261998c9af87b20dab822c7048a4b689790
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
Stone Li 2023-06-25 09:05:13 +08:00 committed by Lane.Wei
parent 633d206732
commit e0e8d1467d
3 changed files with 12 additions and 8 deletions

View file

@ -1059,9 +1059,12 @@ void Sidebar::update_all_preset_comboboxes()
wxString url;
if (cfg.has("print_host_webui") && !cfg.opt_string("print_host_webui").empty()) {
url = cfg.opt_string("print_host_webui");
} else {
} else if (cfg.has("print_host") && !cfg.opt_string("print_host").empty()) {
url = cfg.opt_string("print_host");
} else {
;
}
if(!url.empty())
{
if(!url.Lower().starts_with("http"))