mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 15:07:31 -06:00
ENH:Don't call the interface when task id is incorrect
JIRA:STUDIO-4322 Change-Id: I6fc1dc7379cba0702927e30cab0aa271074c59da (cherry picked from commit 109e3570a898706f449ccac7878c50aef2df9f75)
This commit is contained in:
parent
dfe851c6ba
commit
ddc052749c
2 changed files with 6 additions and 4 deletions
|
@ -2712,7 +2712,10 @@ void StatusPanel::update_model_info()
|
|||
if (!curr_model_task) {
|
||||
curr_model_task = new BBLModelTask();
|
||||
curr_model_task->task_id = curr_task->task_id;
|
||||
wxGetApp().getAgent()->get_subtask(curr_model_task, get_subtask_fn);
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue