mirror of https://github.com/BOINC/boinc.git
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:
parent
5493352a14
commit
3babfa82cd
|
@ -912,9 +912,15 @@ Charlie Jan 29 2008
|
||||||
- SCR: When running V5 GFX applications as a service / daemon, display
|
- SCR: When running V5 GFX applications as a service / daemon, display
|
||||||
appropriate error message instead of trying to display graphics.
|
appropriate error message instead of trying to display graphics.
|
||||||
- API: Add executing_as_daemon bool to get_state rpc.
|
- 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/
|
client/
|
||||||
cs_statefile.C
|
cs_statefile.C
|
||||||
|
clientgui/
|
||||||
|
MainDocument.h
|
||||||
|
ViewWork.cpp
|
||||||
|
ViewWorkGrid.cpp
|
||||||
clientscr/
|
clientscr/
|
||||||
boinc_ss.rc
|
boinc_ss.rc
|
||||||
mac_saver_module.cpp,h
|
mac_saver_module.cpp,h
|
||||||
|
|
|
@ -215,6 +215,7 @@ public:
|
||||||
std::string& strProjectURL,
|
std::string& strProjectURL,
|
||||||
std::string& strName
|
std::string& strName
|
||||||
);
|
);
|
||||||
|
CC_STATE* GetState() { return &state; };
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -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]);
|
m_pTaskPane->EnableTask(pGroup->m_Tasks[BTN_GRAPHICS]);
|
||||||
} else {
|
} else {
|
||||||
m_pTaskPane->DisableTask(pGroup->m_Tasks[BTN_GRAPHICS]);
|
m_pTaskPane->DisableTask(pGroup->m_Tasks[BTN_GRAPHICS]);
|
||||||
|
|
|
@ -389,7 +389,9 @@ void CViewWorkGrid::UpdateSelection() {
|
||||||
_("Suspend work for this task.")
|
_("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]);
|
m_pTaskPane->EnableTask(pGroup->m_Tasks[BTN_GRAPHICS]);
|
||||||
} else {
|
} else {
|
||||||
m_pTaskPane->DisableTask(pGroup->m_Tasks[BTN_GRAPHICS]);
|
m_pTaskPane->DisableTask(pGroup->m_Tasks[BTN_GRAPHICS]);
|
||||||
|
|
Loading…
Reference in New Issue