ENH:Don't call the interface when task id is incorrect
JIRA:STUDIO-4322 Change-Id: I6fc1dc7379cba0702927e30cab0aa271074c59da
This commit is contained in:
parent
378a0a9d75
commit
9f83f6deff
|
@ -4459,7 +4459,8 @@ void MachineObject::update_slice_info(std::string project_id, std::string profil
|
||||||
}
|
}
|
||||||
|
|
||||||
if (project_id.compare("0") == 0
|
if (project_id.compare("0") == 0
|
||||||
|| profile_id.compare("0") == 0) return;
|
|| profile_id.compare("0") == 0
|
||||||
|
|| subtask_id.compare("0") == 0) return;
|
||||||
|
|
||||||
BOOST_LOG_TRIVIAL(trace) << "slice_info: start";
|
BOOST_LOG_TRIVIAL(trace) << "slice_info: start";
|
||||||
slice_info = new BBLSliceInfo();
|
slice_info = new BBLSliceInfo();
|
||||||
|
@ -4471,8 +4472,6 @@ void MachineObject::update_slice_info(std::string project_id, std::string profil
|
||||||
if (plate_idx >= 0) {
|
if (plate_idx >= 0) {
|
||||||
plate_index = plate_idx;
|
plate_index = plate_idx;
|
||||||
} else {
|
} else {
|
||||||
if (subtask_id.compare("0") == 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
std::string subtask_json;
|
std::string subtask_json;
|
||||||
unsigned http_code = 0;
|
unsigned http_code = 0;
|
||||||
|
|
|
@ -2636,10 +2636,12 @@ void StatusPanel::update_model_info()
|
||||||
curr_model_task = new BBLModelTask();
|
curr_model_task = new BBLModelTask();
|
||||||
curr_model_task->task_id = curr_task->task_id;
|
curr_model_task->task_id = curr_task->task_id;
|
||||||
request_model_info_flag = true;
|
request_model_info_flag = true;
|
||||||
|
if (!curr_model_task->task_id.empty() && curr_model_task->task_id.compare("0") != 0) {
|
||||||
wxGetApp().getAgent()->get_subtask(curr_model_task, get_subtask_fn);
|
wxGetApp().getAgent()->get_subtask(curr_model_task, get_subtask_fn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void StatusPanel::update_subtask(MachineObject *obj)
|
void StatusPanel::update_subtask(MachineObject *obj)
|
||||||
|
|
Loading…
Reference in New Issue