mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 10:32:20 +00:00
ENH:display info when in slicing queue
Change-Id: I0dc2645e5679af310c8c0558c8ae47c9d62958e1 Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
@@ -2469,6 +2469,11 @@ int MachineObject::parse_json(std::string payload)
|
||||
if (jj.contains("gcode_state")) {
|
||||
this->set_print_state(jj["gcode_state"].get<std::string>());
|
||||
}
|
||||
if (jj.contains("queue_number")) {
|
||||
this->queue_number = jj["queue_number"].get<int>();
|
||||
} else {
|
||||
this->queue_number = 0;
|
||||
}
|
||||
|
||||
if (jj.contains("task_id")) {
|
||||
this->task_id_ = jj["task_id"].get<std::string>();
|
||||
|
||||
Reference in New Issue
Block a user