-fix for source menu cat_page to be remembered when returning to wiiflow after playing a game.

This commit is contained in:
fledge68 2013-10-28 12:02:47 +00:00
parent 609bf29dbb
commit ff3504d691
2 changed files with 8 additions and 1 deletions

View File

@ -306,7 +306,13 @@ int CMenu::main(void)
m_cfg.save(); m_cfg.save();
if(m_current_view == COVERFLOW_MAX) if(m_current_view == COVERFLOW_MAX)
m_combined_view = true; m_combined_view = true;
else
{
s8 lastSrc = m_cfg.getInt("GENERAL", "last_source_btn", -1);
if(lastSrc >= 0 )
m_catStartPage = m_source.getInt(fmt("BUTTON_%i", lastSrc), "cat_page", 1);
}
m_cfg.setInt("GENERAL", "last_source_btn", -1);
if(m_cfg.getBool("GENERAL", "update_cache", false)) if(m_cfg.getBool("GENERAL", "update_cache", false))
UpdateCache(); UpdateCache();
LoadView(); LoadView();

View File

@ -598,6 +598,7 @@ bool CMenu::_Source()
string source = m_source.getString(btn_selected, "source", ""); string source = m_source.getString(btn_selected, "source", "");
if(BTN_A_PRESSED) if(BTN_A_PRESSED)
{ {
m_cfg.setInt("GENERAL", "last_source_btn", i + j);
_clearSources(); _clearSources();
exitSource = true; exitSource = true;
m_catStartPage = 1; m_catStartPage = 1;