summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/setup.c b/setup.c
index 71f2be43..bf253e84 100644
--- a/setup.c
+++ b/setup.c
@@ -11,6 +11,7 @@ cStringList DecorDescriptions;
cStringList MessageColorPositions;
cStringList ScrollerTypes;
cStringList ScrollBarTypes;
+cStringList DiskUsageFree;
cFlatSetup::cFlatSetup(void) {
SetupConfig = Config;
@@ -54,6 +55,10 @@ void cFlatSetup::Setup(void) {
DiskUsages.Append( strdup(tr("always on the menu")) );
DiskUsages.Append( strdup(tr("always show")) );
+ DiskUsageFree.Clear();
+ DiskUsageFree.Append( strdup(tr("occupied")) );
+ DiskUsageFree.Append( strdup(tr("free")) );
+
MenuChannelViews.Clear();
MenuChannelViews.Append( strdup(tr("VDR default")) );
MenuChannelViews.Append( strdup(tr("flatPlus long")) );
@@ -247,6 +252,7 @@ void cFlatSetup::Store(void) {
SetupStore("ScrollerDelay", Config.ScrollerDelay);
SetupStore("ScrollerType", Config.ScrollerType);
SetupStore("DiskUsageShort", Config.DiskUsageShort);
+ SetupStore("DiskUsageFree", Config.DiskUsageFree);
Config.Init();
}
@@ -286,8 +292,9 @@ void cFlatSetupGeneral::Setup(void) {
Add(new cMenuEditBoolItem(tr("Show empty color-buttons"), &SetupConfig->ButtonsShowEmpty));
Add(new cMenuEditBoolItem(tr("Show TopBar menu icons"), &SetupConfig->TopBarMenuIconShow));
- Add(new cMenuEditStraItem(tr("Show Diskusage stats"), &SetupConfig->DiskUsageShow, DiskUsages.Size(), &DiskUsages[0]));
+ Add(new cMenuEditStraItem(tr("Diskusage show"), &SetupConfig->DiskUsageShow, DiskUsages.Size(), &DiskUsages[0]));
Add(new cMenuEditBoolItem(tr("Diskusage short display"), &SetupConfig->DiskUsageShort));
+ Add(new cMenuEditStraItem(tr("Diskusage free/occupied"), &SetupConfig->DiskUsageFree, DiskUsageFree.Size(), &DiskUsageFree[0]));
Add(new cMenuEditIntItem(tr("OSD vertical margin"), &SetupConfig->marginOsdVer));
Add(new cMenuEditIntItem(tr("OSD horizontal margin"), &SetupConfig->marginOsdHor));
Add(new cMenuEditPrcItem(tr("TopBar font size"), &SetupConfig->TopBarFontSize, 0.01, 0.2, 1));