Fix utf8 string on physical printer dialog (#4765)

This commit is contained in:
Noisyfox 2024-03-29 20:59:54 +08:00 committed by GitHub
parent 6826c38962
commit ed14598eb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -292,7 +292,7 @@ void PhysicalPrinterDialog::build_printhost_settings(ConfigOptionsGroup* m_optgr
Line cafile_hint{ "", "" };
cafile_hint.full_width = 1;
cafile_hint.widget = [ca_file_hint](wxWindow* parent) {
auto txt = new wxStaticText(parent, wxID_ANY, ca_file_hint);
auto txt = new wxStaticText(parent, wxID_ANY, from_u8(ca_file_hint));
auto sizer = new wxBoxSizer(wxHORIZONTAL);
sizer->Add(txt);
return sizer;