mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
ENH:allow printing of all files in the SD card
Change-Id: I72097ddc1fa1020de2133753f14c0715322ea3cd
This commit is contained in:
parent
d8767b2cfe
commit
9d65199a2b
9 changed files with 51 additions and 25 deletions
|
@ -235,6 +235,11 @@ void PrintJob::process()
|
|||
params.task_bed_type = this->task_bed_type;
|
||||
params.print_type = this->m_print_type;
|
||||
|
||||
if (m_print_type == "from_sdcard_view") {
|
||||
params.dst_file = m_dst_path;
|
||||
}
|
||||
|
||||
|
||||
if (wxGetApp().model().model_info && wxGetApp().model().model_info.get()) {
|
||||
ModelInfo* model_info = wxGetApp().model().model_info.get();
|
||||
auto origin_profile_id = model_info->metadata_items.find(BBL_DESIGNER_PROFILE_ID_TAG);
|
||||
|
@ -270,7 +275,7 @@ void PrintJob::process()
|
|||
}
|
||||
|
||||
|
||||
if (params.preset_name.empty()) { params.preset_name = wxString::Format("%s_plate_%d", m_project_name, curr_plate_idx).ToStdString(); }
|
||||
if (params.preset_name.empty() && m_print_type == "from_normal") { params.preset_name = wxString::Format("%s_plate_%d", m_project_name, curr_plate_idx).ToStdString(); }
|
||||
if (params.project_name.empty()) {params.project_name = m_project_name;}
|
||||
|
||||
wxString error_text;
|
||||
|
@ -506,6 +511,12 @@ void PrintJob::set_project_name(std::string name)
|
|||
m_project_name = name;
|
||||
}
|
||||
|
||||
void PrintJob::set_dst_name(std::string path)
|
||||
{
|
||||
m_dst_path = path;
|
||||
}
|
||||
|
||||
|
||||
void PrintJob::on_check_ip_address_fail(std::function<void()> func)
|
||||
{
|
||||
m_enter_ip_address_fun_fail = func;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue