Follow-up of 86d7e1fb90 -> Custom gcode validation in Filament settings tab

This commit is contained in:
enricoturri1966 2021-02-22 08:39:36 +01:00
parent 9b0b0f5e27
commit 92b1302a08
3 changed files with 61 additions and 22 deletions

View file

@ -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();