mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 19:12:38 -07:00
Follow-up of 86d7e1fb90 -> Custom gcode validation in Filament settings tab
This commit is contained in:
@@ -552,12 +552,18 @@ void MainFrame::init_tabpanel()
|
||||
if (printer_tab != nullptr) {
|
||||
if (!printer_tab->validate_custom_gcodes())
|
||||
evt.Veto();
|
||||
return;
|
||||
}
|
||||
TabFilament* filament_tab = dynamic_cast<TabFilament*>(panel);
|
||||
if (filament_tab != nullptr) {
|
||||
if (!filament_tab->validate_custom_gcodes())
|
||||
evt.Veto();
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
#endif // ENABLE_VALIDATE_CUSTOM_GCODE
|
||||
|
||||
|
||||
m_plater = new Plater(this, this);
|
||||
m_plater->Hide();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user