fixed check if menuicon exists

This commit is contained in:
louis 2016-04-19 16:54:30 +02:00
parent dd25359150
commit 4076377e21

View File

@ -346,6 +346,11 @@ bool cImageCache::MenuIconExists(string name) {
if (FileExists(*iconSkinPath, name, "png")) { if (FileExists(*iconSkinPath, name, "png")) {
return true; return true;
} }
//finally check svg templates
cString iconTemplatePath = cString::sprintf("%smenuicons/", svgTemplatePath.c_str());
if (FileExists(*iconTemplatePath, name, "svg")) {
return true;
}
return false; return false;
} }