mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
The file name in the "Timers" menu now shows only the base name of the recording without the folder path
This commit is contained in:
parent
1d2eef218b
commit
94d2bad657
3
HISTORY
3
HISTORY
@ -6355,3 +6355,6 @@ Video Disk Recorder Revision History
|
|||||||
- Keeping subtitles visible when pausing replay (thanks to Rolf Ahrenberg).
|
- Keeping subtitles visible when pausing replay (thanks to Rolf Ahrenberg).
|
||||||
- Fixed adding new transponders in case there is only a single channel in the
|
- Fixed adding new transponders in case there is only a single channel in the
|
||||||
channel list (reported by Halim Sahin).
|
channel list (reported by Halim Sahin).
|
||||||
|
- The file name in the "Timers" menu now shows only the base name of the recording
|
||||||
|
without the folder path (if any). Otherwise with long folder paths the actual
|
||||||
|
recording name was not visible at all.
|
||||||
|
9
menu.c
9
menu.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: menu.c 2.15 2010/02/06 10:16:15 kls Exp $
|
* $Id: menu.c 2.16 2010/02/07 13:31:49 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
@ -1044,6 +1044,11 @@ void cMenuTimerItem::Set(void)
|
|||||||
strftime(buffer, sizeof(buffer), "%Y%m%d", &tm_r);
|
strftime(buffer, sizeof(buffer), "%Y%m%d", &tm_r);
|
||||||
day = buffer;
|
day = buffer;
|
||||||
}
|
}
|
||||||
|
const char *File = strrchr(timer->File(), FOLDERDELIMCHAR);
|
||||||
|
if (File)
|
||||||
|
File++;
|
||||||
|
else
|
||||||
|
File = timer->File();
|
||||||
SetText(cString::sprintf("%c\t%d\t%s%s%s\t%02d:%02d\t%02d:%02d\t%s",
|
SetText(cString::sprintf("%c\t%d\t%s%s%s\t%02d:%02d\t%02d:%02d\t%s",
|
||||||
!(timer->HasFlags(tfActive)) ? ' ' : timer->FirstDay() ? '!' : timer->Recording() ? '#' : '>',
|
!(timer->HasFlags(tfActive)) ? ' ' : timer->FirstDay() ? '!' : timer->Recording() ? '#' : '>',
|
||||||
timer->Channel()->Number(),
|
timer->Channel()->Number(),
|
||||||
@ -1054,7 +1059,7 @@ void cMenuTimerItem::Set(void)
|
|||||||
timer->Start() % 100,
|
timer->Start() % 100,
|
||||||
timer->Stop() / 100,
|
timer->Stop() / 100,
|
||||||
timer->Stop() % 100,
|
timer->Stop() % 100,
|
||||||
timer->File()));
|
File));
|
||||||
}
|
}
|
||||||
|
|
||||||
// --- cMenuTimers -----------------------------------------------------------
|
// --- cMenuTimers -----------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user