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:
SoftFever committed 2024-08-12 00:00:20 +08:00
1 parent 0286c36f42
commit 7082e945b1
184 files changed
+1091 -461

No files matched your search

+3 -3
View File
@@ -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();