fixed check if menuicon exists

This commit is contained in:
louis 2016-04-19 16:54:30 +02:00
parent dd25359150
commit 4076377e21
1 changed files with 5 additions and 0 deletions

View File

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