mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
ENH:The model mall dialog can be activated
Change-Id: I19aa551ffc79c4f5c9369331f28adbe7410ccab2
This commit is contained in:
parent
670641fe7b
commit
de8db2a89c
3 changed files with 14 additions and 6 deletions
|
@ -7408,7 +7408,7 @@ void Plater::import_model_id(const std::string& download_info)
|
|||
//update filename
|
||||
if (is_already_exist && vecFiles.size() >= 1) {
|
||||
wxString extension = fs::path(filename).extension().c_str();
|
||||
wxString name = filename.substr(0, filename.length() - extension.length() - 1);
|
||||
wxString name = filename.substr(0, filename.length() - extension.length());
|
||||
filename = wxString::Format("%s(%d)%s", name, vecFiles.size() + 1, extension).ToStdString();
|
||||
}
|
||||
|
||||
|
@ -7494,7 +7494,7 @@ void Plater::import_model_id(const std::string& download_info)
|
|||
}
|
||||
|
||||
// show save new project
|
||||
p->set_project_filename(filename);
|
||||
p->set_project_filename(wxString::FromUTF8(filename));
|
||||
}
|
||||
else {
|
||||
wxMessageBox(msg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue