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

@ -933,9 +933,11 @@ void MainFrame::init_tabpanel()
wxString url;
if (cfg.has("print_host_webui") && !cfg.opt_string("print_host_webui").empty()) {
url = cfg.opt_string("print_host_webui");
} else if (cfg.has("print_host") && !cfg.opt_string("print_host").empty()) {
url = cfg.opt_string("print_host");
}
else {
url = cfg.opt_string("print_host");
;
}
if (url.empty()) {
wxString url = wxString::Format("file://%s/web/device/missing_connection.html", from_u8(resources_dir()));