FIX: object configuration form cannot be used with multiple extruders

Change-Id: I0c78d0367a7e9f032b6c6efc63bfc6d54b28d091
Jira: STUDIO-7976
This commit is contained in:
chunmao.guo 2024-12-04 17:49:49 +08:00 committed by lane.wei
parent bd3690d85e
commit f4ce4b3600
1 changed files with 5 additions and 0 deletions

View File

@ -15664,6 +15664,11 @@ void Plater::set_need_update(bool need_update)
//BBS: add popup logic for table object
bool Plater::PopupObjectTable(int object_id, int volume_id, const wxPoint& position)
{
if (dynamic_cast<TabPrinter *>(wxGetApp().get_tab(Preset::TYPE_PRINTER))->m_extruders_count > 1) {
MessageDialog dlg(this, _L("Currently, the object configuration form cannot be used with multiple extruders."), _L("Not available"), wxOK | wxICON_WARNING);
dlg.ShowModal();
return false;
}
return p->PopupObjectTable(object_id, volume_id, position);
}