diff options
author | kamel5 <kamel5 (at) gmx (dot) net> | 2018-07-27 15:49:57 +0200 |
---|---|---|
committer | kamel5 <kamel5 (at) gmx (dot) net> | 2018-07-27 15:49:57 +0200 |
commit | a22cd388a49d8d530b583e35fa7fd07a4469dfea (patch) | |
tree | 623c6ef1516caaf8c4a4c2edaf1be2d0be64488f | |
parent | 212dde851dc5233fadc86a68b3a30c797d1b2c90 (diff) | |
download | skin-lcarsng-a22cd388a49d8d530b583e35fa7fd07a4469dfea.tar.gz skin-lcarsng-a22cd388a49d8d530b583e35fa7fd07a4469dfea.tar.bz2 |
Show NumRecordingsInPath only if > 0
-rw-r--r-- | displaymenu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/displaymenu.c b/displaymenu.c index 67d4e07..e1de0fe 100644 --- a/displaymenu.c +++ b/displaymenu.c @@ -488,7 +488,8 @@ void cLCARSNGDisplayMenu::DrawNumRecordingsInPath(void) #endif NumRecordingsInPath = Recordings->GetNumRecordingsInPath(cMenuRecordings::GetActualPath()); } - osd->DrawText(xm04, ys00, cString::sprintf("%i", NumRecordingsInPath), Theme.Color(clrMenuFrameFg), frameColor, font, xm08 - xm04 - 1, lineHeight, taBottom | taRight | taBorder); + if (NumRecordingsInPath > 0) + osd->DrawText(xm04, ys00, cString::sprintf("%i", NumRecordingsInPath), Theme.Color(clrMenuFrameFg), frameColor, font, xm08 - xm04 - 1, lineHeight, taBottom | taRight | taBorder); } void cLCARSNGDisplayMenu::DrawCountRecordings(void) |