From 4f49d64e7c0a6f530a8b57b8ed9584a9e18c36da Mon Sep 17 00:00:00 2001 From: sunsets <845944018@qq.com> Date: Mon, 17 Jul 2023 19:36:06 +0800 Subject: [PATCH] Update MainFrame.cpp --- src/slic3r/GUI/MainFrame.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/slic3r/GUI/MainFrame.cpp b/src/slic3r/GUI/MainFrame.cpp index ea615e8e..99822151 100644 --- a/src/slic3r/GUI/MainFrame.cpp +++ b/src/slic3r/GUI/MainFrame.cpp @@ -2085,11 +2085,14 @@ void MainFrame::select_tab(size_t tab/* = size_t(-1)*/) m_printer_view->load_url(url); } } - if (count == 0 && m_tabpanel->GetSelection() != (int)new_selection) - { - m_tabpanel->SetSelection(new_selection); - count++; - } + //B4 +#ifdef __APPLE__ + if (count == 0 && m_tabpanel->GetSelection() != (int) new_selection) { + m_tabpanel->SetSelection(new_selection); + count++; + } +#endif + #ifdef _MSW_DARK_MODE if (wxGetApp().tabs_as_menu()) { if (Tab* cur_tab = dynamic_cast(m_tabpanel->GetPage(new_selection)))