mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-06 14:37:36 -06:00
Make sure sidebar is not triggered by child notebook tab changes (#8934)
* Make sure sidebar is not triggered by child notebook tab changes such as AMS group selection (SoftFever/OrcaSlicer#8656)
This commit is contained in:
parent
85d46d2979
commit
ecd91bcf01
1 changed files with 6 additions and 0 deletions
|
@ -7280,6 +7280,12 @@ void Plater::priv::on_action_print_plate_from_sdcard(SimpleEvent&)
|
|||
|
||||
void Plater::priv::on_tab_selection_changing(wxBookCtrlEvent& e)
|
||||
{
|
||||
// Ignore event raised by child controls
|
||||
if (!(main_frame->m_tabpanel && e.GetId() == main_frame->m_tabpanel->GetId())) {
|
||||
e.Skip();
|
||||
return;
|
||||
}
|
||||
|
||||
const int new_sel = e.GetSelection();
|
||||
sidebar_layout.show = new_sel == MainFrame::tp3DEditor || new_sel == MainFrame::tpPreview;
|
||||
update_sidebar();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue