- timerlist: hide play button, when no remote-box is defined

This commit is contained in:
svenhoefer
2016-10-21 12:11:36 +02:00
parent 9a9fc2097b
commit 418bf4b341

View File

@@ -1243,10 +1243,14 @@ void CTimerList::paintFoot()
//shadow //shadow
frameBuffer->paintBoxRel(x + OFFSET_SHADOW, y + height - footerHeight, width, footerHeight + OFFSET_SHADOW, COL_SHADOW_PLUS_0, RADIUS_LARGE, CORNER_BOTTOM); frameBuffer->paintBoxRel(x + OFFSET_SHADOW, y + height - footerHeight, width, footerHeight + OFFSET_SHADOW, COL_SHADOW_PLUS_0, RADIUS_LARGE, CORNER_BOTTOM);
int c = TimerListButtonsCount;
if (g_settings.timer_remotebox_ip.size() == 0)
c--; // reduce play button
if (timerlist.empty()) if (timerlist.empty())
::paintButtons(x, y + height - footerHeight, width, 2, &(TimerListButtons[1]), width); ::paintButtons(x, y + height - footerHeight, width, 2, &(TimerListButtons[1]), width);
else else
::paintButtons(x, y + height - footerHeight, width, TimerListButtonsCount, TimerListButtons, width); ::paintButtons(x, y + height - footerHeight, width, c, TimerListButtons, width);
} }
void CTimerList::paint() void CTimerList::paint()