mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
fixed a crash if no skindesigner skins are found and plugin setup menu is called from another skin
This commit is contained in:
parent
b177b37393
commit
688ad9698e
1
HISTORY
1
HISTORY
@ -12,3 +12,4 @@ Version 0.0.2
|
|||||||
- added common channel logo path for all skins
|
- added common channel logo path for all skins
|
||||||
- changed skin handling so that every skin is directly shown in VDR OSD Menu
|
- changed skin handling so that every skin is directly shown in VDR OSD Menu
|
||||||
- added Theme support, each skin can now have various themes
|
- added Theme support, each skin can now have various themes
|
||||||
|
- fixed a crash if no skindesigner skins are found and plugin setup menu is called from another skin
|
||||||
|
6
setup.c
6
setup.c
@ -19,6 +19,12 @@ void cSkinDesignerSetup::Setup(void) {
|
|||||||
Add(new cMenuEditIntItem(tr("Number to cache initially (per size)"), &data.numLogosPerSizeInitial, 0, 1000));
|
Add(new cMenuEditIntItem(tr("Number to cache initially (per size)"), &data.numLogosPerSizeInitial, 0, 1000));
|
||||||
Add(new cMenuEditIntItem(tr("Number to cache in maximum"), &data.numLogosMax, 0, 1000));
|
Add(new cMenuEditIntItem(tr("Number to cache in maximum"), &data.numLogosMax, 0, 1000));
|
||||||
|
|
||||||
|
if (!imgCache) {
|
||||||
|
SetCurrent(Get(current));
|
||||||
|
Display();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
cString message = cString::sprintf("--------------------- %s ---------------------", tr("Cache Statistics"));
|
cString message = cString::sprintf("--------------------- %s ---------------------", tr("Cache Statistics"));
|
||||||
Add(new cOsdItem(*message));
|
Add(new cOsdItem(*message));
|
||||||
cList<cOsdItem>::Last()->SetSelectable(false);
|
cList<cOsdItem>::Last()->SetSelectable(false);
|
||||||
|
@ -112,6 +112,9 @@ bool cPluginSkinDesigner::Start(void) {
|
|||||||
newSkin->ActivateBackupSkin();
|
newSkin->ActivateBackupSkin();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (skins.size() == 0) {
|
||||||
|
esyslog("skindesigner: no skins found! Using default Skin LCARS!");
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user