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()) {
|
if (!pDoc->IsConnected()) {
|
||||||
SetIcon(m_iconTaskBarDisconnected);
|
SetIcon(m_iconTaskBarDisconnected);
|
||||||
} else {
|
} else {
|
||||||
if (RUN_MODE_NEVER == status.task_mode) {
|
switch(status.task_suspend_reason) {
|
||||||
SetIcon(m_iconTaskBarSnooze);
|
case SUSPEND_REASON_CPU_THROTTLE:
|
||||||
} else {
|
case 0:
|
||||||
SetIcon(m_iconTaskBarNormal);
|
SetIcon(m_iconTaskBarNormal);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
SetIcon(m_iconTaskBarSnooze);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
@ -705,9 +708,6 @@ void CTaskBarIcon::UpdateTaskbarStatus() {
|
||||||
|
|
||||||
if (pDoc->IsConnected()) {
|
if (pDoc->IsConnected()) {
|
||||||
icnIcon = m_iconTaskBarNormal;
|
icnIcon = m_iconTaskBarNormal;
|
||||||
if (RUN_MODE_NEVER == status.task_mode) {
|
|
||||||
icnIcon = m_iconTaskBarSnooze;
|
|
||||||
}
|
|
||||||
bool comp_suspended = false;
|
bool comp_suspended = false;
|
||||||
switch(status.task_suspend_reason) {
|
switch(status.task_suspend_reason) {
|
||||||
case SUSPEND_REASON_CPU_THROTTLE:
|
case SUSPEND_REASON_CPU_THROTTLE:
|
||||||
|
@ -715,6 +715,7 @@ void CTaskBarIcon::UpdateTaskbarStatus() {
|
||||||
strMessage += _("Computing is enabled");
|
strMessage += _("Computing is enabled");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
icnIcon = m_iconTaskBarSnooze;
|
||||||
strMessage += _("Computing is suspended - ");
|
strMessage += _("Computing is suspended - ");
|
||||||
strMessage += suspend_reason_wxstring(status.task_suspend_reason);
|
strMessage += suspend_reason_wxstring(status.task_suspend_reason);
|
||||||
comp_suspended = true;
|
comp_suspended = true;
|
||||||
|
|
Loading…
Reference in New Issue