MGR: Disable Show Grapics button for V5 GFX applications when BOINC is running as a service / daemon

svn path=/trunk/boinc/; revision=14644
This commit is contained in:
Charlie Fenton 2008-01-30 03:50:32 +00:00
parent 5493352a14
commit 3babfa82cd
4 changed files with 15 additions and 4 deletions

View File

@ -912,9 +912,15 @@ Charlie Jan 29 2008
- SCR: When running V5 GFX applications as a service / daemon, display
appropriate error message instead of trying to display graphics.
- API: Add executing_as_daemon bool to get_state rpc.
- MGR: Disable Show Grapics button for V5 GFX applications when BOINC
is running as a service / daemon.
client/
cs_statefile.C
clientgui/
MainDocument.h
ViewWork.cpp
ViewWorkGrid.cpp
clientscr/
boinc_ss.rc
mac_saver_module.cpp,h

View File

@ -215,6 +215,7 @@ public:
std::string& strProjectURL,
std::string& strName
);
CC_STATE* GetState() { return &state; };
//

View File

@ -510,7 +510,9 @@ void CViewWork::UpdateSelection() {
);
}
if (result->supports_graphics || !result->graphics_exec_path.empty()) {
if ((result->supports_graphics && (! pDoc->GetState()->executing_as_daemon))
|| !result->graphics_exec_path.empty()
) {
m_pTaskPane->EnableTask(pGroup->m_Tasks[BTN_GRAPHICS]);
} else {
m_pTaskPane->DisableTask(pGroup->m_Tasks[BTN_GRAPHICS]);

View File

@ -389,7 +389,9 @@ void CViewWorkGrid::UpdateSelection() {
_("Suspend work for this task.")
);
}
if (result->supports_graphics || !result->graphics_exec_path.empty()) {
if ((result->supports_graphics && (! pDoc->GetState()->executing_as_daemon))
|| !result->graphics_exec_path.empty()
) {
m_pTaskPane->EnableTask(pGroup->m_Tasks[BTN_GRAPHICS]);
} else {
m_pTaskPane->DisableTask(pGroup->m_Tasks[BTN_GRAPHICS]);