summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--displaymenu.c28
1 files changed, 26 insertions, 2 deletions
diff --git a/displaymenu.c b/displaymenu.c
index 8853906b..19b0c10f 100644
--- a/displaymenu.c
+++ b/displaymenu.c
@@ -1783,6 +1783,29 @@ bool cFlatDisplayMenu::SetItemRecording(const cRecording *Recording, int Index,
}
LastItemRecordingLevel = Level;
+ if( LastRecFolder != RecFolder ) {
+ int recCount = 0, recNewCount = 0;
+ LastRecFolder = RecFolder;
+ if( RecFolder != "" && LastItemRecordingLevel > 0 ) {
+ for(cRecording *Rec = Recordings.First(); Rec; Rec = Recordings.Next(Rec)) {
+ std::string RecFolder2 = GetRecordingName(Rec, LastItemRecordingLevel-1, true);
+ if( RecFolder == RecFolder2 ) {
+ recCount++;
+ if( Rec->IsNew() )
+ recNewCount++;
+ }
+ }
+ } else {
+ for(cRecording *Rec = Recordings.First(); Rec; Rec = Recordings.Next(Rec)) {
+ recCount++;
+ if( Rec->IsNew() )
+ recNewCount++;
+ }
+ }
+ cString newTitle = cString::sprintf("%s (%d*/%d)", *LastTitle, recNewCount, recCount);
+ TopBarSetTitleWithoutClear(*newTitle);
+ }
+
if( Current )
menuItemScroller.Clear();
@@ -3415,6 +3438,7 @@ void cFlatDisplayMenu::Flush(void) {
TopBarSetTitleWithoutClear(*newTitle);
}
}
+ /*
if( Config.MenuRecordingShowCount && menuCategory == mcRecording && LastRecFolder != RecFolder ) {
dsyslog("LastRecFolder: %s RecFolder: %s", LastRecFolder.c_str(), RecFolder.c_str() );
int recCount = 0, recNewCount = 0;
@@ -3435,10 +3459,10 @@ void cFlatDisplayMenu::Flush(void) {
recNewCount++;
}
}
- cString newTitle = cString::sprintf("%s (%d*/%d)", *LastTitle, recNewCount, recCount);
+ cString newTitle = cString::sprintf("%s (%dSTAR/%d)", *LastTitle, recNewCount, recCount);
TopBarSetTitleWithoutClear(*newTitle);
}
-
+ */
osd->Flush();
}