mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 00:07:52 -06:00
Follow-up of 86d7e1fb90
-> Fixed update after switching tab after editing custom g-code in settings tabs
This commit is contained in:
parent
224f3e506c
commit
908c48ae6a
2 changed files with 30 additions and 11 deletions
|
@ -549,9 +549,8 @@ void MainFrame::init_tabpanel()
|
|||
wxWindow* panel = m_tabpanel->GetCurrentPage();
|
||||
if (panel != nullptr) {
|
||||
Tab* tab = dynamic_cast<Tab*>(panel);
|
||||
if (tab && (tab->type() == Preset::TYPE_FILAMENT || tab->type() == Preset::TYPE_PRINTER))
|
||||
if (!tab->validate_custom_gcodes())
|
||||
evt.Veto();
|
||||
if (tab != nullptr && !tab->validate_custom_gcodes())
|
||||
evt.Veto();
|
||||
}
|
||||
});
|
||||
#endif // ENABLE_VALIDATE_CUSTOM_GCODE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue