- added 'back_tier' as a source menu button option. in case you would like to show a up or back arrow to return to previous tier.

- changed 'source menu on start' to always start on base tier.
This commit is contained in:
Fledge68 2019-11-11 09:59:43 -06:00
parent 60e231e43f
commit e68197246c
3 changed files with 18 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 MiB

After

Width:  |  Height:  |  Size: 3.6 MiB

View File

@ -405,6 +405,13 @@ bool CMenu::init(bool usb_mounted)
MusicPlayer.Init(m_cfg, m_musicDir, fmt("%s/music", m_themeDataDir.c_str())); MusicPlayer.Init(m_cfg, m_musicDir, fmt("%s/music", m_themeDataDir.c_str()));
m_music_info = m_cfg.getBool("GENERAL", "display_music_info", false); m_music_info = m_cfg.getBool("GENERAL", "display_music_info", false);
/* Source Menu on start reset tiers before buid menus */
if(m_cfg.getBool("GENERAL", "source_on_start", false))
{
m_cfg.remove(SOURCEFLOW_DOMAIN, "tiers");
m_cfg.remove(SOURCEFLOW_DOMAIN, "numbers");
}
/* Init Button Manager and build the menus */ /* Init Button Manager and build the menus */
_buildMenus(); _buildMenus();

View File

@ -132,6 +132,11 @@ void CMenu::_sourceFlow()
return; return;
} }
} }
else if(source == "back_tier")
{
_srcTierBack(false);
return;
}
else //(source == "wii") else //(source == "wii")
m_current_view = COVERFLOW_WII; m_current_view = COVERFLOW_WII;
m_sourceflow = false; m_sourceflow = false;
@ -477,6 +482,12 @@ bool CMenu::_Source()
_updateSourceBtns(); _updateSourceBtns();
} }
} }
else if(source == "back_tier")
{
exitSource = false;
_srcTierBack(false);
_updateSourceBtns();
}
else //if(source == "wii") or source is invalid or empty default to wii else //if(source == "wii") or source is invalid or empty default to wii
{ {
m_current_view = COVERFLOW_WII; m_current_view = COVERFLOW_WII;