mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 18:27:58 -06:00
QOL change: Don't add "_plate_0" in file name if there is only one plate in the current project
This commit is contained in:
parent
25e3944c53
commit
5eee758c9e
3 changed files with 5 additions and 3 deletions
|
@ -6438,7 +6438,9 @@ wxString Plater::priv::get_project_filename(const wxString& extension) const
|
|||
|
||||
wxString Plater::priv::get_export_gcode_filename(const wxString& extension, bool only_filename, bool export_all) const
|
||||
{
|
||||
std::string plate_index_str = (boost::format("_plate_%1%") % std::to_string(partplate_list.get_curr_plate_index() + 1)).str();
|
||||
std::string plate_index_str;
|
||||
if (partplate_list.get_plate_count() > 1)
|
||||
plate_index_str = (boost::format("_plate_%1%") % std::to_string(partplate_list.get_curr_plate_index() + 1)).str();
|
||||
if (!m_project_folder.empty()) {
|
||||
if (!only_filename) {
|
||||
if (export_all) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue