- MGR: Remove code that blocks the switch to simple view when an

accessibility aid is running.
        
    clientgui/
        BOINCGUIApp.cpp
        AdvancedFrame.cpp

svn path=/trunk/boinc/; revision=24397
This commit is contained in:
Rom Walton 2011-10-14 05:03:48 +00:00
parent d2d6a49287
commit f93c8d4c65
3 changed files with 8 additions and 12 deletions

View File

@ -7214,3 +7214,11 @@ David 13 Oct 2011
clientgui/
sg_TaskPanel.cpp,h
Rom 13 Oct 2011
- MGR: Remove code that blocks the switch to simple view when an
accessibility aid is running.
clientgui/
BOINCGUIApp.cpp
AdvancedFrame.cpp

View File

@ -402,12 +402,6 @@ bool CAdvancedFrame::CreateMenu() {
menuView->Enable(ID_CHANGEGUI, false);
}
// Is an accessibility aid running?
if (wxGetApp().IsAccessibilityEnabled()) {
menuView->Enable(ID_CHANGEGUI, false);
}
// Tools menu
wxMenu *menuTools = new wxMenu;

View File

@ -392,16 +392,10 @@ bool CBOINCGUIApp::OnInit() {
// Is there a condition in which the Simple GUI should not be used?
if (BOINC_SIMPLEGUI == m_iGUISelected) {
// Screen too small?
if (wxGetDisplaySize().GetHeight() < 600) {
m_iGUISelected = BOINC_ADVANCEDGUI;
}
// Screen reader in use?
if (IsAccessibilityEnabled()) {
m_iGUISelected = BOINC_ADVANCEDGUI;
}
}