ENH:update the profile name of the private model

Change-Id: I7a64b273817f8340824e9510ac67e8c8fe96bde2
This commit is contained in:
tao wang 2023-05-05 11:43:04 +08:00 committed by Lane.Wei
parent 70bbaa4337
commit 8c57d3cc47
1 changed files with 4 additions and 2 deletions

View File

@ -239,8 +239,10 @@ void PrintJob::process()
catch (...) {}
}
}
else {
params.preset_name = wxGetApp().preset_bundle->prints.get_selected_preset_name();
if (params.preset_name.empty() && params.project_name.empty()) {
params.preset_name = wxString::Format("%s_plate_%d", m_project_name, curr_plate_idx).ToStdString();
params.project_name = m_project_name;
}