mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 17:58:03 -06:00
Revert "Fix Compile Warnings (#5963)"
This reverts commit b83e16dbdd
.
Found regressions like auto orientation didn't work anymore after this change, revert it
This commit is contained in:
parent
0286c36f42
commit
7082e945b1
184 changed files with 1091 additions and 461 deletions
|
@ -19,7 +19,7 @@ MultiMachinePage::MultiMachinePage(wxWindow* parent, wxWindowID id, const wxPoin
|
|||
wxGetApp().UpdateDarkUIWin(this);
|
||||
|
||||
init_timer();
|
||||
Bind(wxEVT_TIMER, [this](wxTimerEvent&) { on_timer(); });
|
||||
Bind(wxEVT_TIMER, &MultiMachinePage::on_timer, this);
|
||||
}
|
||||
|
||||
MultiMachinePage::~MultiMachinePage()
|
||||
|
@ -59,7 +59,7 @@ bool MultiMachinePage::Show(bool show)
|
|||
m_refresh_timer->Stop();
|
||||
m_refresh_timer->SetOwner(this);
|
||||
m_refresh_timer->Start(2000);
|
||||
on_timer();
|
||||
wxPostEvent(this, wxTimerEvent());
|
||||
}
|
||||
else {
|
||||
m_refresh_timer->Stop();
|
||||
|
@ -97,7 +97,7 @@ void MultiMachinePage::init_timer()
|
|||
//wxPostEvent(this, wxTimerEvent());
|
||||
}
|
||||
|
||||
void MultiMachinePage::on_timer()
|
||||
void MultiMachinePage::on_timer(wxTimerEvent& event)
|
||||
{
|
||||
m_local_task_manager->update_page();
|
||||
m_cloud_task_manager->update_page();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue