mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 20:03:47 +00:00
Fix crash on exit, pt2
This commit is contained in:
@@ -816,6 +816,10 @@ void Tab::update_wiping_button_visibility() {
|
|||||||
// to update number of "filament" selection boxes when the number of extruders change.
|
// to update number of "filament" selection boxes when the number of extruders change.
|
||||||
void Tab::on_presets_changed()
|
void Tab::on_presets_changed()
|
||||||
{
|
{
|
||||||
|
if (wxGetApp().plater() == nullptr) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Instead of PostEvent (EVT_TAB_PRESETS_CHANGED) just call update_presets
|
// Instead of PostEvent (EVT_TAB_PRESETS_CHANGED) just call update_presets
|
||||||
wxGetApp().plater()->sidebar().update_presets(m_type);
|
wxGetApp().plater()->sidebar().update_presets(m_type);
|
||||||
update_preset_description_line();
|
update_preset_description_line();
|
||||||
|
|||||||
Reference in New Issue
Block a user