FIX: Hidden Model Mall Entrance

Change-Id: Ia15182a2c44fcb35c5d66fe7949c1ed32c90aefd
This commit is contained in:
maosheng.wei 2023-07-04 16:12:15 +08:00 committed by Lane.Wei
parent 270acd4685
commit 1b7050cc18

View file

@ -2538,7 +2538,7 @@ void StatusPanel::update_subtask(MachineObject *obj)
m_project_task_panel->enable_abort_button(false);
m_project_task_panel->enable_pause_resume_button(false, "resume_disable");
if (wxGetApp().has_model_mall()) {
bool is_market_task = obj->get_modeltask() && obj->get_modeltask()->design_id > 0;
if (is_market_task) {
m_project_task_panel->get_market_scoring_button()->Show();
@ -2562,6 +2562,7 @@ void StatusPanel::update_subtask(MachineObject *obj)
} else {
m_project_task_panel->get_market_scoring_button()->Hide();
}
}
} else {
m_project_task_panel->enable_abort_button(true);
m_project_task_panel->get_market_scoring_button()->Hide();