-parental lock fixes

This commit is contained in:
fledge68 2012-02-18 04:59:01 +00:00
parent 2a0a2a3303
commit 3c9e16c35e
2 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ void CMenu::_showConfig(void)
_setBg(m_configBg, m_configBg);
m_btnMgr.show(m_configLblTitle);
m_btnMgr.show(m_configBtnBack);
if (m_current_view != COVERFLOW_DML)
if (m_current_view != COVERFLOW_DML && !m_locked)
{
m_btnMgr.show(m_configLblPartitionName);
m_btnMgr.show(m_configLblPartition);
@ -119,7 +119,7 @@ void CMenu::_showConfig(void)
m_btnMgr.setText(m_configLblPage, wfmt(L"%i / %i", g_curPage, m_locked ? g_curPage + 1 : CMenu::_nbCfgPages));
if (m_current_view == COVERFLOW_CHANNEL || m_current_view == COVERFLOW_USB)
if ((m_current_view == COVERFLOW_CHANNEL || m_current_view == COVERFLOW_USB) && !m_locked)
{
m_btnMgr.show(m_configLblEmulation);
m_btnMgr.show(m_configLblEmulationVal);

View File

@ -101,7 +101,7 @@ void CMenu::_showMain(void)
m_btnMgr.show(m_mainBtnUsb);
break;
case COVERFLOW_CHANNEL:
if(show_homebrew)
if (show_homebrew && (parental_homebrew || !m_locked))
m_btnMgr.show(m_mainBtnHomebrew);
else
m_btnMgr.show(m_mainBtnUsb);