Commit a5ab520d authored by Charlie Fenton's avatar Charlie Fenton
Browse files

MGR: Fix bugs in commits 289005d7 and e1eb20f5 (set check mark on Snooze GPU...

MGR: Fix bugs in commits 289005d7 and e1eb20f5 (set check mark on Snooze GPU menu item and disable it when CPU is snoozed.)  The earlier commits also set the check mark when CPU was set to Suspend indefinitely.  This new commit also disables the Snooze GPU menu item in some additional cases when appropriate.
parent e1eb20f5
......@@ -655,11 +655,14 @@ void CTaskBarIcon::AdjustMenuItems(wxMenu* pMenu) {
break;
}
if (status.task_mode == RUN_MODE_NEVER) {
m_SnoozeGPUMenuItem->Check(true);
bool check_gpu_snooze = false;
if (status.task_mode_perm != RUN_MODE_NEVER) check_gpu_snooze = true;
if ((status.gpu_mode == RUN_MODE_NEVER) && (status.gpu_mode_perm != RUN_MODE_NEVER)) {
check_gpu_snooze = true;
}
m_SnoozeGPUMenuItem->Check(check_gpu_snooze);
m_SnoozeGPUMenuItem->Enable(false);
}
else
{
} else {
m_SnoozeGPUMenuItem->Enable(enableSnoozeItems);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment