FIX: object configuration form cannot be used with multiple extruders

Change-Id: I0c78d0367a7e9f032b6c6efc63bfc6d54b28d091
Jira: STUDIO-7976
(cherry picked from commit f4ce4b3600da9dd471c3b9d02aebac093dfcbfc8)
This commit is contained in:
chunmao.guo
2024-12-04 17:49:49 +08:00
committed by Noisyfox
parent 5b25588c1f
commit 508ee2760d

View File

@@ -15740,6 +15740,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);
}