fixed an bug that CN plate name was not working properly

This commit is contained in:
SoftFever
2023-08-04 20:36:32 +08:00
parent 1eb6da83af
commit 4e3c6b564d
4 changed files with 11 additions and 9 deletions

View File

@ -3069,7 +3069,7 @@ void SelectMachineDialog::set_default()
filename = m_plater->get_export_gcode_filename("", true);
}
fs::path filename_path(filename.ToStdWstring());
fs::path filename_path(filename.c_str());
m_current_project_name = wxString::FromUTF8(filename_path.filename().string());
m_rename_text->SetLabelText(m_current_project_name);
m_rename_normal_panel->Layout();