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:
Charlie Fenton 2011-11-14 09:35:37 +00:00
parent 2ac9fe8566
commit 0c137a12c4
2 changed files with 9 additions and 3 deletions

View File

@ -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

View File

@ -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;