mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-27 13:44:15 +01:00
-fix for source menu cat_page to be remembered when returning to wiiflow after playing a game.
This commit is contained in:
parent
609bf29dbb
commit
ff3504d691
@ -306,7 +306,13 @@ int CMenu::main(void)
|
||||
m_cfg.save();
|
||||
if(m_current_view == COVERFLOW_MAX)
|
||||
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))
|
||||
UpdateCache();
|
||||
LoadView();
|
||||
|
@ -598,6 +598,7 @@ bool CMenu::_Source()
|
||||
string source = m_source.getString(btn_selected, "source", "");
|
||||
if(BTN_A_PRESSED)
|
||||
{
|
||||
m_cfg.setInt("GENERAL", "last_source_btn", i + j);
|
||||
_clearSources();
|
||||
exitSource = true;
|
||||
m_catStartPage = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user