mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-01-31 07:58:43 +03:00
Remove suspended threads to optimize cpu usage
This commit is contained in:
@@ -753,9 +753,9 @@ void MainFrame::init_tabpanel()
|
|||||||
m_tabpanel->Bind(wxEVT_NOTEBOOK_PAGE_CHANGED, [this](wxBookCtrlEvent& e) {
|
m_tabpanel->Bind(wxEVT_NOTEBOOK_PAGE_CHANGED, [this](wxBookCtrlEvent& e) {
|
||||||
#endif
|
#endif
|
||||||
//B45
|
//B45
|
||||||
#if defined(__WIN32__) || defined(__WXMAC__)
|
// #if defined(__WIN32__) || defined(__WXMAC__)
|
||||||
m_printer_view->PauseButton();
|
// m_printer_view->PauseButton();
|
||||||
#endif
|
// #endif
|
||||||
if (int old_selection = e.GetOldSelection();
|
if (int old_selection = e.GetOldSelection();
|
||||||
old_selection != wxNOT_FOUND && old_selection < static_cast<int>(m_tabpanel->GetPageCount())) {
|
old_selection != wxNOT_FOUND && old_selection < static_cast<int>(m_tabpanel->GetPageCount())) {
|
||||||
Tab* old_tab = dynamic_cast<Tab*>(m_tabpanel->GetPage(old_selection));
|
Tab* old_tab = dynamic_cast<Tab*>(m_tabpanel->GetPage(old_selection));
|
||||||
@@ -2178,7 +2178,7 @@ void MainFrame::select_tab(size_t tab/* = size_t(-1)*/)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__WIN32__) || defined(__WXMAC__)
|
#if defined(__WIN32__) || defined(__WXMAC__)
|
||||||
m_printer_view->ResumeButton();
|
// m_printer_view->ResumeButton();
|
||||||
//B63
|
//B63
|
||||||
m_printer_view->SetFocus();
|
m_printer_view->SetFocus();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user