ENH:ban gcode to send print

jira: STUDIO-10518
Change-Id: I5958fe1bfea9a133d3adde6b0e64289f7ceb0f52
This commit is contained in:
zhou.xu 2025-04-15 16:29:12 +08:00 committed by lane.wei
parent c94057306b
commit 4b96f09a75
2 changed files with 5 additions and 4 deletions

View File

@ -2305,8 +2305,10 @@ bool GUI_App::is_blocking_printing(MachineObject *obj_)
if (!dev) return true;
std::string target_model;
if (obj_ == nullptr) {
auto obj_ = dev->get_selected_machine();
target_model = obj_->printer_type;
auto obj_ = dev->get_selected_machine();
if (obj_) {
target_model = obj_->printer_type;
}
} else {
target_model = obj_->printer_type;
}

View File

@ -12192,8 +12192,7 @@ void Plater::load_gcode(const wxString& filename)
} else {
set_project_filename(filename);
}
p->main_frame->update_slice_print_status(MainFrame::eEventPlateUpdate, false, true);//STUDIO-11512
p->main_frame->update_slice_print_status(MainFrame::eEventPlateUpdate, false, false); //20250416 ban gcode to send print
}
void Plater::reload_gcode_from_disk()