when loading carousel theme, keep checking system themes until one is found with a system view defined

This commit is contained in:
jrassa 2017-04-06 17:24:32 -04:00
parent bf1c0b841b
commit 7b8192c879

View file

@ -310,6 +310,9 @@ void SystemView::getViewElements(const std::shared_ptr<ThemeData>& theme)
getDefaultElements();
if (!theme->hasView("system"))
return;
const ThemeData::ThemeElement* carouselElem = theme->getElement("system", "systemcarousel", "carousel");
if (carouselElem)
getCarouselFromTheme(carouselElem);