mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-03 17:38:43 +03:00
Update MainFrame.cpp
This commit is contained in:
@@ -2085,11 +2085,14 @@ void MainFrame::select_tab(size_t tab/* = size_t(-1)*/)
|
|||||||
m_printer_view->load_url(url);
|
m_printer_view->load_url(url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (count == 0 && m_tabpanel->GetSelection() != (int)new_selection)
|
//B4
|
||||||
{
|
#ifdef __APPLE__
|
||||||
m_tabpanel->SetSelection(new_selection);
|
if (count == 0 && m_tabpanel->GetSelection() != (int) new_selection) {
|
||||||
count++;
|
m_tabpanel->SetSelection(new_selection);
|
||||||
}
|
count++;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef _MSW_DARK_MODE
|
#ifdef _MSW_DARK_MODE
|
||||||
if (wxGetApp().tabs_as_menu()) {
|
if (wxGetApp().tabs_as_menu()) {
|
||||||
if (Tab* cur_tab = dynamic_cast<Tab*>(m_tabpanel->GetPage(new_selection)))
|
if (Tab* cur_tab = dynamic_cast<Tab*>(m_tabpanel->GetPage(new_selection)))
|
||||||
|
|||||||
Reference in New Issue
Block a user