mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-15 17:55:52 +08:00
QOL change: use first model's name as output name if project name isn't set.
This commit is contained in:
parent
5eee758c9e
commit
e1a3b66b9f
@ -6458,6 +6458,9 @@ wxString Plater::priv::get_export_gcode_filename(const wxString& extension, bool
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (only_filename) {
|
if (only_filename) {
|
||||||
|
if(m_project_name == L"Untitled")
|
||||||
|
return fs::path(model.objects.front()->name).replace_extension().c_str() + wxString(plate_index_str) + extension;
|
||||||
|
|
||||||
if (export_all)
|
if (export_all)
|
||||||
return m_project_name + extension;
|
return m_project_name + extension;
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user