mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-22 22:24:01 -06:00
An attempt to fix an OSX crash when manipulating the ImGui sliders
This commit is contained in:
parent
ee4496f59f
commit
9c5194c89b
4 changed files with 21 additions and 7 deletions
|
@ -2365,8 +2365,10 @@ RENDER_AGAIN:
|
|||
}
|
||||
|
||||
if (value_changed) { // Update side panel
|
||||
wxGetApp().obj_settings()->UpdateAndShow(true);
|
||||
wxGetApp().obj_list()->update_settings_items();
|
||||
wxTheApp->CallAfter([]() {
|
||||
wxGetApp().obj_settings()->UpdateAndShow(true);
|
||||
wxGetApp().obj_list()->update_settings_items();
|
||||
});
|
||||
}
|
||||
|
||||
bool generate = m_imgui->button(_(L("Auto-generate points [A]")));
|
||||
|
@ -2400,7 +2402,7 @@ RENDER_AGAIN:
|
|||
|
||||
if (remove_selected || remove_all) {
|
||||
force_refresh = false;
|
||||
m_parent.reload_scene(true);
|
||||
m_parent.set_as_dirty();
|
||||
if (remove_all)
|
||||
select_point(AllPoints);
|
||||
delete_selected_points(remove_all);
|
||||
|
@ -2413,7 +2415,7 @@ RENDER_AGAIN:
|
|||
}
|
||||
|
||||
if (force_refresh)
|
||||
m_parent.reload_scene(true);
|
||||
m_parent.set_as_dirty();
|
||||
}
|
||||
#endif // ENABLE_IMGUI
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue