From c5842ab7288121c7434e811ff7c9f2a7a4518e0a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 9 Aug 2013 23:23:32 -0700 Subject: [PATCH] Manager: show "paused" icon if computing is suspended for any reason --- clientgui/BOINCTaskBar.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/clientgui/BOINCTaskBar.cpp b/clientgui/BOINCTaskBar.cpp index 5d63cc3a07..0f2d52a60e 100644 --- a/clientgui/BOINCTaskBar.cpp +++ b/clientgui/BOINCTaskBar.cpp @@ -684,10 +684,13 @@ void CTaskBarIcon::UpdateTaskbarStatus() { if (!pDoc->IsConnected()) { SetIcon(m_iconTaskBarDisconnected); } else { - if (RUN_MODE_NEVER == status.task_mode) { - SetIcon(m_iconTaskBarSnooze); - } else { + switch(status.task_suspend_reason) { + case SUSPEND_REASON_CPU_THROTTLE: + case 0: SetIcon(m_iconTaskBarNormal); + break; + default: + SetIcon(m_iconTaskBarSnooze); } } #else @@ -705,9 +708,6 @@ void CTaskBarIcon::UpdateTaskbarStatus() { if (pDoc->IsConnected()) { icnIcon = m_iconTaskBarNormal; - if (RUN_MODE_NEVER == status.task_mode) { - icnIcon = m_iconTaskBarSnooze; - } bool comp_suspended = false; switch(status.task_suspend_reason) { case SUSPEND_REASON_CPU_THROTTLE: @@ -715,6 +715,7 @@ void CTaskBarIcon::UpdateTaskbarStatus() { strMessage += _("Computing is enabled"); break; default: + icnIcon = m_iconTaskBarSnooze; strMessage += _("Computing is suspended - "); strMessage += suspend_reason_wxstring(status.task_suspend_reason); comp_suspended = true;