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

Origin commit data
------------------
Branch: ni/coolstream
Commit: 418bf4b341
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-21 (Fri, 21 Oct 2016)

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

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2016-10-21 12:11:36 +02:00
parent a41206902f
commit 1aba17ef27

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()