mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
fixed check if menuicon exists
This commit is contained in:
parent
dd25359150
commit
4076377e21
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user