mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
removed color buttons if detailed view is called from recmenu
This commit is contained in:
parent
0d3d2efd62
commit
0cbc226651
10
footer.c
10
footer.c
@ -74,20 +74,24 @@ void cFooter::UpdateGroupButtons(const cChannel *channel, bool force) {
|
||||
}
|
||||
}
|
||||
|
||||
void cFooter::SetDetailedViewMode(void) {
|
||||
void cFooter::SetDetailedViewMode(bool fromRecMenu) {
|
||||
ClearButton(positionButtons[1]);
|
||||
ClearButton(positionButtons[2]);
|
||||
if (tvguideConfig.blueKeyMode != eBlueKeySwitch) {
|
||||
if (fromRecMenu) {
|
||||
ClearButton(positionButtons[0]);
|
||||
ClearButton(positionButtons[3]);
|
||||
} else if (tvguideConfig.blueKeyMode != eBlueKeySwitch) {
|
||||
ClearButton(positionButtons[3]);
|
||||
drawBlueButton(true);
|
||||
}
|
||||
}
|
||||
|
||||
void cFooter::LeaveDetailedViewMode(const cChannel *channel) {
|
||||
drawRedButton();
|
||||
drawBlueButton();
|
||||
if (tvguideConfig.channelJumpMode == eNumJump) {
|
||||
drawGreenButton();
|
||||
drawYellowButton();
|
||||
drawBlueButton();
|
||||
} else {
|
||||
UpdateGroupButtons(channel, true);
|
||||
}
|
||||
|
2
footer.h
2
footer.h
@ -26,7 +26,7 @@ public:
|
||||
void drawYellowButton(const char *text);
|
||||
void drawBlueButton(bool detailedEPG = false);
|
||||
void UpdateGroupButtons(const cChannel *channel, bool force = false);
|
||||
void SetDetailedViewMode(void);
|
||||
void SetDetailedViewMode(bool fromRecMenu = false);
|
||||
void LeaveDetailedViewMode(const cChannel *channel);
|
||||
};
|
||||
|
||||
|
@ -831,7 +831,7 @@ bool cRecMenuManager::DisplayTimerConflict(int timerID) {
|
||||
void cRecMenuManager::DisplayDetailedView(const cEvent *ev) {
|
||||
activeMenu->Hide();
|
||||
detailView = new cDetailView(ev, footer);
|
||||
footer->SetDetailedViewMode();
|
||||
footer->SetDetailedViewMode(true);
|
||||
detailView->setContent();
|
||||
detailView->drawHeader();
|
||||
detailView->drawContent();
|
||||
|
Loading…
Reference in New Issue
Block a user