mirror of https://github.com/BOINC/boinc.git
- MGR: Another place that interacts with the taskbar but was
included only if compiled for Windows or the Mac. clientgui/ AsyncRPC.cpp MainDocument.cpp svn path=/trunk/boinc/; revision=20534
This commit is contained in:
parent
553b7b29bc
commit
6e388fd050
|
@ -1130,3 +1130,12 @@ Rom 10 Feb 2010
|
|||
|
||||
clientgui/
|
||||
BOINCTaskBar.cpp, .h
|
||||
|
||||
Rom 10 Feb 2010
|
||||
- MGR: Another place that interacts with the taskbar but was
|
||||
included only if compiled for Windows or the Mac.
|
||||
|
||||
clientgui/
|
||||
AsyncRPC.cpp
|
||||
MainDocument.cpp
|
||||
|
|
@ -1122,7 +1122,6 @@ void CMainDocument::HandleCompletedRPC() {
|
|||
// We must get the frame immediately before using it,
|
||||
// since it may have been changed by SetActiveGUI().
|
||||
CBOINCBaseFrame* pFrame = wxGetApp().GetFrame();
|
||||
|
||||
if (pFrame) {
|
||||
CFrameEvent event(wxEVT_FRAME_REFRESHVIEW, pFrame);
|
||||
pFrame->ProcessEvent(event);
|
||||
|
@ -1132,7 +1131,6 @@ void CMainDocument::HandleCompletedRPC() {
|
|||
if (m_bNeedTaskBarRefresh && !m_bWaitingForRPC) {
|
||||
m_bNeedTaskBarRefresh = false;
|
||||
CTaskBarIcon* pTaskbar = wxGetApp().GetTaskBarIcon();
|
||||
|
||||
if (pTaskbar) {
|
||||
CTaskbarEvent event(wxEVT_TASKBAR_REFRESH, pTaskbar);
|
||||
pTaskbar->ProcessEvent(event);
|
||||
|
|
|
@ -840,13 +840,11 @@ void CMainDocument::RunPeriodicRPCs(int frameRefreshRate) {
|
|||
if (!IsConnected()) {
|
||||
CFrameEvent event(wxEVT_FRAME_REFRESHVIEW, pFrame);
|
||||
pFrame->AddPendingEvent(event);
|
||||
#if defined(__WXMSW__) || defined(__WXMAC__)
|
||||
CTaskBarIcon* pTaskbar = wxGetApp().GetTaskBarIcon();
|
||||
if (pTaskbar) {
|
||||
CTaskbarEvent event(wxEVT_TASKBAR_REFRESH, pTaskbar);
|
||||
pTaskbar->AddPendingEvent(event);
|
||||
}
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue