mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 06:57:36 -06: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:
parent
d9395e6405
commit
c9635174bd
3 changed files with 14 additions and 4 deletions
|
@ -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>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue