- fix for flat covers when using homebrew plugin

This commit is contained in:
Fledge68 2019-05-29 14:07:18 -05:00
parent 656e162cf1
commit c8e517d9aa
2 changed files with 16 additions and 14 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 MiB

After

Width:  |  Height:  |  Size: 3.4 MiB

View File

@ -2163,10 +2163,13 @@ void CMenu::_initCF(void)
else if(m_current_view == COVERFLOW_PLUGIN) else if(m_current_view == COVERFLOW_PLUGIN)
{ {
m_plugin.GetEnabledPlugins(m_cfg, &enabledPluginsCount); m_plugin.GetEnabledPlugins(m_cfg, &enabledPluginsCount);
if(enabledPluginsCount == 1 && m_cfg.getBool(PLUGIN_ENABLED, "48425257") && m_cfg.getBool(HOMEBREW_DOMAIN, "smallbox")) if(enabledPluginsCount == 1 && m_cfg.getBool(PLUGIN_ENABLED, "48425257"))// homebrew plugin
CoverFlow.setSmallBoxMode(true); {
CoverFlow.setBoxMode(m_cfg.getBool(HOMEBREW_DOMAIN, "box_mode", true));
CoverFlow.setSmallBoxMode(m_cfg.getBool(HOMEBREW_DOMAIN, "smallbox", false));
}
else else
CoverFlow.setSmallBoxMode(false); {
int boxmode_cnt = 0; int boxmode_cnt = 0;
for(u8 i = 0; m_plugin.PluginExist(i); ++i) for(u8 i = 0; m_plugin.PluginExist(i); ++i)
{ {
@ -2176,10 +2179,9 @@ void CMenu::_initCF(void)
boxmode_cnt++; boxmode_cnt++;
} }
} }
if(boxmode_cnt == 0) CoverFlow.setBoxMode(boxmode_cnt > 0);
CoverFlow.setBoxMode(false); CoverFlow.setSmallBoxMode(false);
else }
CoverFlow.setBoxMode(true);
} }
else else
{ {