ENH: update slice status after insert all custom gcode

Jira: STUDIO-4155

Change-Id: Ia088a471477895c92eaeac6f26052e7ec0f060a9
This commit is contained in:
liz.li 2023-08-23 17:07:03 +08:00 committed by Lane.Wei
parent 1fe94590bd
commit d3166fda13
3 changed files with 7 additions and 6 deletions

View file

@ -1557,7 +1557,7 @@ wxBoxSizer* MainFrame::create_side_tools()
m_slice_btn->Bind(wxEVT_BUTTON, [this](wxCommandEvent& event)
{
//this->m_plater->select_view_3D("Preview");
m_plater->update();
m_plater->update(false, true);
if (m_slice_select == eSliceAll)
wxPostEvent(m_plater, SimpleEvent(EVT_GLTOOLBAR_SLICE_ALL));
else