MGR: Fix bug which showed Snooze task bar icon when it shouldn't.

svn path=/trunk/boinc/; revision=14224
This commit is contained in:
Charlie Fenton 2007-11-16 09:28:02 +00:00
parent 4cc5144f98
commit db772ab82a
2 changed files with 6 additions and 1 deletions

View File

@ -11070,3 +11070,8 @@ David 15 Nov 2007
html/user/
forum_index.php
team_forum.php
Charlie 16 Nov 2007
MGR: Fix bug which showed Snooze task bar icon when it shouldn't.
clientgui/
BOINCTaskBar.cpp

View File

@ -146,7 +146,7 @@ void CTaskBarIcon::OnRefresh(wxTimerEvent& WXUNUSED(event)) {
if (!pDoc->IsConnected()) {
SetIcon(m_iconTaskBarDisconnected, wxEmptyString);
} else {
if (status.task_suspend_reason && !(status.task_suspend_reason & SUSPEND_REASON_CPU_USAGE_LIMIT)) {
if (RUN_MODE_NEVER == status.task_mode) {
SetIcon(m_iconTaskBarSnooze, wxEmptyString);
} else {
SetIcon(m_iconTaskBarNormal, wxEmptyString);