From 960f27cb2b17cf799595e90e6dd1f5a199f7ad3f Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Fri, 27 Jan 2012 22:39:20 +0000 Subject: [PATCH] MGR: Disable new "Resume" items in system tray menu if modal dialog is open svn path=/trunk/boinc/; revision=25164 --- checkin_notes | 8 +++++++- clientgui/BOINCTaskBar.cpp | 8 ++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/checkin_notes b/checkin_notes index 0fd549299f..a9862884b4 100644 --- a/checkin_notes +++ b/checkin_notes @@ -1074,7 +1074,7 @@ Charlie 26 Jan 2012 HowToBuildBOINC_XCode.rtf Charlie 27 Jan 2012 - - MGR: If CPU or GPU is suspended from Activity Menu, change "Snooze" item + - MGR: If CPU or GPU is suspended from Activity Menu, change "Snooze" items to "Resume" in system tray menu. - client: Always remember previous CPU and GPU activity settings. @@ -1105,3 +1105,9 @@ David 27 Jan 2012 clientgui/ BOINCBaseView.cpp BOINCTaskCtrl.cpp + +Charlie 27 Jan 2012 + - MGR: Disable new "Resume" items in system tray menu if modal dialog is open. + + clientgui/ + BOINCTaskBar.cpp diff --git a/clientgui/BOINCTaskBar.cpp b/clientgui/BOINCTaskBar.cpp index 271b701137..01e45bff88 100644 --- a/clientgui/BOINCTaskBar.cpp +++ b/clientgui/BOINCTaskBar.cpp @@ -592,7 +592,9 @@ void CTaskBarIcon::AdjustMenuItems(wxMenu* pMenu) { case RUN_MODE_NEVER: m_SnoozeMenuItem->SetItemLabel(_("Resume")); m_SnoozeMenuItem->Check(false); - m_SnoozeMenuItem->Enable(true); + if (!is_dialog_detected) { + m_SnoozeMenuItem->Enable(true); + } break; default: m_SnoozeMenuItem->SetItemLabel(_("Snooze")); @@ -617,7 +619,9 @@ void CTaskBarIcon::AdjustMenuItems(wxMenu* pMenu) { case RUN_MODE_NEVER: m_SnoozeGPUMenuItem->SetItemLabel(_("Resume GPU")); m_SnoozeGPUMenuItem->Check(false); - m_SnoozeGPUMenuItem->Enable(true); + if (!is_dialog_detected) { + m_SnoozeGPUMenuItem->Enable(true); + } break; default: m_SnoozeGPUMenuItem->SetItemLabel(_("Snooze GPU"));