- fixed a potential issue if using the source select icon on main screen with no source menu.

This commit is contained in:
Fledge68 2020-04-20 10:37:47 -05:00
parent 1724046bf3
commit 0d9b58609c
2 changed files with 6 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 MiB

After

Width:  |  Height:  |  Size: 4.1 MiB

View File

@ -539,9 +539,12 @@ int CMenu::main(void)
m_current_view = show_homebrew ? COVERFLOW_HOMEBREW : COVERFLOW_WII; m_current_view = show_homebrew ? COVERFLOW_HOMEBREW : COVERFLOW_WII;
else if(m_current_view == COVERFLOW_HOMEBREW || m_source_cnt > 1) else if(m_current_view == COVERFLOW_HOMEBREW || m_source_cnt > 1)
m_current_view = COVERFLOW_WII; m_current_view = COVERFLOW_WII;
sm_numbers_backup = "0"; if(m_use_source)
sm_tiers_backup = SOURCE_FILENAME; {
_restoreSrcTiers(); sm_numbers_backup = "0";
sm_tiers_backup = SOURCE_FILENAME;
_restoreSrcTiers();
}
m_source_cnt = 1; m_source_cnt = 1;
m_cfg.setUInt("GENERAL", "sources", m_current_view); m_cfg.setUInt("GENERAL", "sources", m_current_view);
m_catStartPage = 1; m_catStartPage = 1;