Update PrinterWebView.cpp

This commit is contained in:
sunsets
2024-03-28 15:57:09 +08:00
parent 58e2343a2e
commit 764ce01063

View File

@@ -570,9 +570,10 @@ void PrinterWebView::OnAddButtonClick(wxCommandEvent &event)
formattedHost = wxString::Format("%s:10088", formattedHost);
}
UnSelectedButton();
//B60
if (isValidIPAddress)
AddButton(
printer_name, host,model_id, fullname, true, (host_type == htMoonraker), cfg_t);
printer_name, host,model_id, wxString::FromUTF8(fullname), true, (host_type == htMoonraker), cfg_t);
load_url(formattedHost);
UpdateLayout();
Refresh();