mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
- adzap: hide blue button if needed
This commit is contained in:
@@ -242,6 +242,7 @@ void CAdZapMenu::Settings()
|
|||||||
CChannelEventList evtlist;
|
CChannelEventList evtlist;
|
||||||
CEitManager::getInstance()->getEventsServiceKey(channelId & 0xFFFFFFFFFFFFULL, evtlist);
|
CEitManager::getInstance()->getEventsServiceKey(channelId & 0xFFFFFFFFFFFFULL, evtlist);
|
||||||
monitorLifeTime.tv_sec = 0;
|
monitorLifeTime.tv_sec = 0;
|
||||||
|
bool show_monitor = false;
|
||||||
if (!evtlist.empty())
|
if (!evtlist.empty())
|
||||||
{
|
{
|
||||||
sort(evtlist.begin(), evtlist.end(), sortByDateTime);
|
sort(evtlist.begin(), evtlist.end(), sortByDateTime);
|
||||||
@@ -253,6 +254,7 @@ void CAdZapMenu::Settings()
|
|||||||
if ((u_int) eli->startTime + (u_int) eli->duration > (u_int) ts.tv_sec)
|
if ((u_int) eli->startTime + (u_int) eli->duration > (u_int) ts.tv_sec)
|
||||||
{
|
{
|
||||||
monitorLifeTime.tv_sec = (uint) eli->startTime + eli->duration;
|
monitorLifeTime.tv_sec = (uint) eli->startTime + eli->duration;
|
||||||
|
show_monitor = true;
|
||||||
Update();
|
Update();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -278,7 +280,7 @@ void CAdZapMenu::Settings()
|
|||||||
minute = LOCALE_ADZAP_MINUTES;
|
minute = LOCALE_ADZAP_MINUTES;
|
||||||
}
|
}
|
||||||
|
|
||||||
menu->setFooter(CAdZapMenuFooterButtons, CAdZapMenuFooterButtonCount);
|
menu->setFooter(CAdZapMenuFooterButtons, CAdZapMenuFooterButtonCount - (show_monitor ? 0 : 1));
|
||||||
menu->exec(NULL, "");
|
menu->exec(NULL, "");
|
||||||
menu->hide();
|
menu->hide();
|
||||||
delete menu;
|
delete menu;
|
||||||
|
Reference in New Issue
Block a user