mirror of https://github.com/BOINC/boinc.git
Mgr: Don't call Simple View specific periodic RPCs when BOINC is hidden or minimized
svn path=/trunk/boinc/; revision=24587
This commit is contained in:
parent
2ac9fe8566
commit
0c137a12c4
|
@ -8433,3 +8433,10 @@ David 13 Nov 2011
|
|||
client/
|
||||
file_names.h
|
||||
cs_scheduler.cpp
|
||||
|
||||
Charlie 14 Nov 2011
|
||||
- Mgr: Don't call Simple View specific periodic RPCs when BOINC is
|
||||
hidden or minimized.
|
||||
|
||||
clientgui/
|
||||
MainDocument.cpp
|
||||
|
|
|
@ -1014,9 +1014,8 @@ void CMainDocument::RunPeriodicRPCs(int frameRefreshRate) {
|
|||
ts = dtNow - m_dtLastFrameViewRefreshRPCTime;
|
||||
if (ts.GetMilliseconds() < (frameRefreshRate - 500)) return;
|
||||
|
||||
// TODO: modify SimpleGUI to not do direct RPC calls when hidden / minimized
|
||||
// Don't do periodic RPC calls when hidden / minimized unless SimpleGui
|
||||
if (! ((currentTabView & VW_SGUI) || pFrame->IsShown()) ) return;
|
||||
// Don't do periodic RPC calls when hidden / minimized
|
||||
if (!pFrame->IsShown()) return;
|
||||
|
||||
m_dtLastFrameViewRefreshRPCTime = dtNow;
|
||||
|
||||
|
|
Loading…
Reference in New Issue