mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-03 01:10:37 +08: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
@ -7280,6 +7280,12 @@ void Plater::priv::on_action_print_plate_from_sdcard(SimpleEvent&)
|
|||||||
|
|
||||||
void Plater::priv::on_tab_selection_changing(wxBookCtrlEvent& e)
|
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();
|
const int new_sel = e.GetSelection();
|
||||||
sidebar_layout.show = new_sel == MainFrame::tp3DEditor || new_sel == MainFrame::tpPreview;
|
sidebar_layout.show = new_sel == MainFrame::tp3DEditor || new_sel == MainFrame::tpPreview;
|
||||||
update_sidebar();
|
update_sidebar();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user