mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
fixed bug in diplaying list of search timers
This commit is contained in:
parent
5eabb6e7c8
commit
26f46355f9
@ -153,7 +153,7 @@ void cRecMenu::AddMenuItem(cRecMenuItem *item, bool inFront) {
|
|||||||
bool cRecMenu::AddMenuItemInitial(cRecMenuItem *item, bool inFront) {
|
bool cRecMenu::AddMenuItemInitial(cRecMenuItem *item, bool inFront) {
|
||||||
currentHeight += item->GetHeight();
|
currentHeight += item->GetHeight();
|
||||||
int totalHeight = headerHeight + footerHeight + currentHeight + 2*border;
|
int totalHeight = headerHeight + footerHeight + currentHeight + 2*border;
|
||||||
if (totalHeight >= geoManager.osdHeight) {
|
if (totalHeight >= geoManager.osdHeight - 10) {
|
||||||
scrollable = true;
|
scrollable = true;
|
||||||
currentHeight -= item->GetHeight();
|
currentHeight -= item->GetHeight();
|
||||||
if (deleteMenuItems) {
|
if (deleteMenuItems) {
|
||||||
|
@ -654,10 +654,10 @@ cRecMenuSearchTimers::cRecMenuSearchTimers(std::vector<cTVGuideSearchTimer> sear
|
|||||||
cRecMenuItemInfo *infoItem = new cRecMenuItemInfo(*headline, true);
|
cRecMenuItemInfo *infoItem = new cRecMenuItemInfo(*headline, true);
|
||||||
infoItem->CalculateHeight(width - 2 * border);
|
infoItem->CalculateHeight(width - 2 * border);
|
||||||
SetHeader(infoItem);
|
SetHeader(infoItem);
|
||||||
if (numSearchTimers > 0)
|
|
||||||
SetMenuItems();
|
|
||||||
cRecMenuItem *button = new cRecMenuItemButton(tr("Close"), rmsClose, (!numSearchTimers)?true:false);
|
cRecMenuItem *button = new cRecMenuItemButton(tr("Close"), rmsClose, (!numSearchTimers)?true:false);
|
||||||
SetFooter(button);
|
SetFooter(button);
|
||||||
|
if (numSearchTimers > 0)
|
||||||
|
SetMenuItems();
|
||||||
CalculateHeight();
|
CalculateHeight();
|
||||||
CreatePixmap();
|
CreatePixmap();
|
||||||
Arrange();
|
Arrange();
|
||||||
@ -669,7 +669,8 @@ cRecMenuSearchTimers::~cRecMenuSearchTimers(void) {
|
|||||||
|
|
||||||
void cRecMenuSearchTimers::SetMenuItems(void) {
|
void cRecMenuSearchTimers::SetMenuItems(void) {
|
||||||
for (int i = 0; i < numSearchTimers; i++) {
|
for (int i = 0; i < numSearchTimers; i++) {
|
||||||
AddMenuItemInitial(new cRecMenuItemSearchTimer(searchTimers[i], rmsSearchTimerEdit, rmsSearchTimerDeleteConfirm, rmsSearchTimerTest, (i==0)?true:false));
|
if (!AddMenuItemInitial(new cRecMenuItemSearchTimer(searchTimers[i], rmsSearchTimerEdit, rmsSearchTimerDeleteConfirm, rmsSearchTimerTest, (i==0)?true:false)))
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user