FIX:fixed model import not in the latest list

fixed STUDIO-2986 STUDIO-2989

Change-Id: Ifc20a6dcfcd0cae305cc6c2844cb26656289925e
This commit is contained in:
tao wang 2023-06-09 16:36:18 +08:00 committed by Lane.Wei
parent 2e4cc06d0c
commit 87386c817c
3 changed files with 3 additions and 7 deletions

View file

@ -3373,9 +3373,7 @@ void SelectMachineDialog::set_default()
if (filename.empty()) {
filename = m_plater->get_export_gcode_filename("", true);
if (std::strstr(filename.c_str(), _L("Untitled").c_str()) == NULL) {
filename = wxString::Format("Untitled%s", filename);
}
if (filename.empty()) filename = _L("Untitled");
}
fs::path filename_path(filename.c_str());