summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2017-12-09 18:58:25 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2017-12-09 18:58:25 +0100
commit1492f6dbc4c237b750687a6c6dd41a0284a09229 (patch)
tree665c6591ce967651309fe3b589bd4e9e098f7202 /config.c
parente757f10e440a160c9657b89b51388311d95ff123 (diff)
downloadvdr-1492f6dbc4c237b750687a6c6dd41a0284a09229.tar.gz
vdr-1492f6dbc4c237b750687a6c6dd41a0284a09229.tar.bz2
Implemented 'OSD/Sorting direction for recordings'
Diffstat (limited to 'config.c')
-rw-r--r--config.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/config.c b/config.c
index 0b5a1021..a44f9bf9 100644
--- a/config.c
+++ b/config.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: config.c 4.6 2017/05/21 10:25:26 kls Exp $
+ * $Id: config.c 4.7 2017/12/09 14:17:02 kls Exp $
*/
#include "config.h"
@@ -432,6 +432,7 @@ cSetup::cSetup(void)
FoldersInTimerMenu = 1;
AlwaysSortFoldersFirst = 1;
DefaultSortModeRec = rsmTime;
+ RecSortingDirection = rsdAscending;
NumberKeysForChars = 1;
ColorKey0 = 0;
ColorKey1 = 1;
@@ -658,6 +659,7 @@ bool cSetup::Parse(const char *Name, const char *Value)
else if (!strcasecmp(Name, "RecordingDirs")) RecordingDirs = atoi(Value);
else if (!strcasecmp(Name, "FoldersInTimerMenu")) FoldersInTimerMenu = atoi(Value);
else if (!strcasecmp(Name, "AlwaysSortFoldersFirst")) AlwaysSortFoldersFirst = atoi(Value);
+ else if (!strcasecmp(Name, "RecSortingDirection")) RecSortingDirection= atoi(Value);
else if (!strcasecmp(Name, "DefaultSortModeRec")) DefaultSortModeRec = atoi(Value);
else if (!strcasecmp(Name, "NumberKeysForChars")) NumberKeysForChars = atoi(Value);
else if (!strcasecmp(Name, "ColorKey0")) ColorKey0 = atoi(Value);
@@ -789,6 +791,7 @@ bool cSetup::Save(void)
Store("RecordingDirs", RecordingDirs);
Store("FoldersInTimerMenu", FoldersInTimerMenu);
Store("AlwaysSortFoldersFirst", AlwaysSortFoldersFirst);
+ Store("RecSortingDirection",RecSortingDirection);
Store("DefaultSortModeRec", DefaultSortModeRec);
Store("NumberKeysForChars", NumberKeysForChars);
Store("ColorKey0", ColorKey0);