Skip to content

Commit

Permalink
Update MainFrame.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
whitekaren committed Jul 17, 2023
1 parent 7e28696 commit 4f49d64
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/slic3r/GUI/MainFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Tab*>(m_tabpanel->GetPage(new_selection)))
Expand Down

0 comments on commit 4f49d64

Please sign in to comment.