summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkamel5 <kamel5 (at) gmx (dot) net>2018-03-29 10:19:51 +0200
committerkamel5 <kamel5 (at) gmx (dot) net>2018-03-29 10:19:51 +0200
commit2c2ba798be7ba55c78fb94f59c716ebf6220ab8c (patch)
tree1ac34d11b932bacf25790fafadadd1cd2e44f114
parentc1b97a84e376526d98aae63c6eafb07e9258472c (diff)
downloadskin-lcarsng-2c2ba798be7ba55c78fb94f59c716ebf6220ab8c.tar.gz
skin-lcarsng-2c2ba798be7ba55c78fb94f59c716ebf6220ab8c.tar.bz2
In SetTitle NumRecordingsInPath only for mcRecording
-rw-r--r--lcarsng.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/lcarsng.c b/lcarsng.c
index e615af9..c28e7ec 100644
--- a/lcarsng.c
+++ b/lcarsng.c
@@ -388,7 +388,7 @@ static int FreeMB(const char *Base, bool Initial)
struct statvfs fsstat;
if (!statvfs(path.c_str(), &fsstat)) {
freediskspace = int((double)fsstat.f_bavail / (double)(1024.0 * 1024.0 / fsstat.f_bsize));
- LOCK_DELETEDRECORDINGS_READ
+ LOCK_DELETEDRECORDINGS_READ;
for (const cRecording *rec = DeletedRecordings->First(); rec; rec = DeletedRecordings->Next(rec)) {
if (!stat(rec->FileName(), &statdir)) {
if (statdir.st_dev == fsid) {
@@ -1885,13 +1885,6 @@ void cLCARSNGDisplayMenu::SetTitle(const char *Title)
const cFont *font = cFont::GetFont(fontOsd);
initial = true;
currentTitle = NULL;
-#ifdef USE_WAREAGLEICON
- int NumRecordingsInPath = 0;
- {
- LOCK_RECORDINGS_READ;
- NumRecordingsInPath = Recordings->GetNumRecordingsInPath(cMenuRecordings::GetActualPath());
- }
-#endif /* WAREAGLEICON */
switch (MenuCategory()) {
case mcMain:
case mcSetup:
@@ -1900,6 +1893,11 @@ void cLCARSNGDisplayMenu::SetTitle(const char *Title)
break;
case mcRecording:
#ifdef USE_WAREAGLEICON
+ int NumRecordingsInPath = 0;
+ {
+ LOCK_RECORDINGS_READ;
+ NumRecordingsInPath = Recordings->GetNumRecordingsInPath(cMenuRecordings::GetActualPath());
+ }
osd->DrawText(xm04, ys00, cString::sprintf("%i", NumRecordingsInPath), Theme.Color(clrMenuFrameFg), frameColor, font, xm08 - xm04 - 1, lineHeight, taBottom | taRight);
#endif /* WAREAGLEICON */
currentTitle = Title;