mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
fixed header icon for plugin menus
This commit is contained in:
parent
4168dd5f29
commit
f3ad276385
2
HISTORY
2
HISTORY
@ -201,3 +201,5 @@ Version 0.2.2
|
|||||||
|
|
||||||
- added replay onpause view in blackhole skin
|
- added replay onpause view in blackhole skin
|
||||||
- implemented SetTitle() in displayreplay
|
- implemented SetTitle() in displayreplay
|
||||||
|
- fixed header icon for plugin menus
|
||||||
|
|
||||||
|
@ -206,7 +206,25 @@ string cImageCache::GetIconName(string label, eMenuCategory cat) {
|
|||||||
case mcSetupRecord:
|
case mcSetupRecord:
|
||||||
case mcSetupReplay:
|
case mcSetupReplay:
|
||||||
return "standardicons/Recordings";
|
return "standardicons/Recordings";
|
||||||
case mcPlugin:
|
case mcPlugin: {
|
||||||
|
//check for Plugins
|
||||||
|
for (int i = 0; ; i++) {
|
||||||
|
cPlugin *p = cPluginManager::GetPlugin(i);
|
||||||
|
if (p) {
|
||||||
|
const char *mainMenuEntry = p->MainMenuEntry();
|
||||||
|
if (mainMenuEntry) {
|
||||||
|
string plugMainEntry = mainMenuEntry;
|
||||||
|
try {
|
||||||
|
if (label.substr(0, plugMainEntry.size()) == plugMainEntry) {
|
||||||
|
return *cString::sprintf("pluginicons/%s", p->Name());
|
||||||
|
}
|
||||||
|
} catch (...) {}
|
||||||
|
}
|
||||||
|
} else
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return "standardicons/Plugins";
|
||||||
|
}
|
||||||
case mcPluginSetup:
|
case mcPluginSetup:
|
||||||
case mcSetupPlugins:
|
case mcSetupPlugins:
|
||||||
return "standardicons/Plugins";
|
return "standardicons/Plugins";
|
||||||
|
Loading…
Reference in New Issue
Block a user