summaryrefslogtreecommitdiff
path: root/displaymenuview.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2012-12-19 19:43:56 +0100
committerlouis <louis.braun@gmx.de>2012-12-19 19:43:56 +0100
commit7c2a71393299eed572c1b4dfc2f35a7819e8843b (patch)
tree751f8c55e49f82ac291015d28924d3f235058fe7 /displaymenuview.c
parent7010739a062c660bbd88b612e1635068325acf3f (diff)
downloadskin-nopacity-7c2a71393299eed572c1b4dfc2f35a7819e8843b.tar.gz
skin-nopacity-7c2a71393299eed572c1b4dfc2f35a7819e8843b.tar.bz2
Configurable display of disc usage and timers in main menu
Diffstat (limited to 'displaymenuview.c')
-rw-r--r--displaymenuview.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/displaymenuview.c b/displaymenuview.c
index 70ae27c..ce8e7cc 100644
--- a/displaymenuview.c
+++ b/displaymenuview.c
@@ -495,7 +495,10 @@ void cNopacityDisplayMenuView::ClearButton(int num) {
}
int cNopacityDisplayMenuView::GetTimersInitHeight(void) {
- return headerHeight + diskUsageHeight + 2*spaceMenu;
+ int initHeight = headerHeight + 2*spaceMenu;
+ if (config.showDiscUsage)
+ initHeight += diskUsageHeight;
+ return initHeight;
}
int cNopacityDisplayMenuView::GetTimersMaxHeight(void) {