mirror of https://github.com/BOINC/boinc.git
Manager: show "paused" icon if computing is suspended for any reason
This commit is contained in:
parent
ead91c6f38
commit
c5842ab728
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue