mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
Custom G-code validation - Do not veto setting tab switch when invalid g-code is found
This commit is contained in:
@@ -549,8 +549,10 @@ void MainFrame::init_tabpanel()
|
|||||||
wxWindow* panel = m_tabpanel->GetCurrentPage();
|
wxWindow* panel = m_tabpanel->GetCurrentPage();
|
||||||
if (panel != nullptr) {
|
if (panel != nullptr) {
|
||||||
Tab* tab = dynamic_cast<Tab*>(panel);
|
Tab* tab = dynamic_cast<Tab*>(panel);
|
||||||
if (tab != nullptr && !tab->validate_custom_gcodes())
|
if (tab != nullptr)
|
||||||
evt.Veto();
|
tab->validate_custom_gcodes();
|
||||||
|
// if (tab != nullptr && !tab->validate_custom_gcodes())
|
||||||
|
// evt.Veto();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
#endif // ENABLE_VALIDATE_CUSTOM_GCODE
|
#endif // ENABLE_VALIDATE_CUSTOM_GCODE
|
||||||
|
|||||||
Reference in New Issue
Block a user