FIX: unable to send file to sd card if plate > 1

1. Should set plate index before send file

jira:STUDIO-12431

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Id7828069a81f5671b0a6b90d7b0c9b703b10a9cc
(cherry picked from commit fd1e17f818c5c8e38d207e1e829dc5c5749e6f65)
This commit is contained in:
xun.zhang 2025-05-28 16:44:41 +08:00 committed by Noisyfox
parent d58a93b501
commit ace6e614ad
3 changed files with 23 additions and 20 deletions

View file

@ -836,8 +836,10 @@ void SendToPrinterDialog::on_ok(wxCommandEvent &event)
// enter sending mode
sending_mode();
if (wxGetApp().plater()->using_exported_file())
result = 0;
if (wxGetApp().plater()->using_exported_file()) {
m_plater->set_print_job_plate_idx(m_print_plate_idx);
result = 0;
}
else {
result = m_plater->send_gcode(m_print_plate_idx, [this](int export_stage, int current, int total, bool &cancel) {
if (this->m_is_canceled) return;