summaryrefslogtreecommitdiff
path: root/displaymenuview.c
diff options
context:
space:
mode:
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) {