From 0837137ea813b11142756b0d8028cf3f36f098d5 Mon Sep 17 00:00:00 2001 From: kamel5 Date: Sat, 9 Nov 2019 11:58:46 +0100 Subject: [PATCH] Refactor cRecMenuNoTimerConflict --- recmenus.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/recmenus.c b/recmenus.c index dae7b07..4e20d03 100644 --- a/recmenus.c +++ b/recmenus.c @@ -307,13 +307,14 @@ int cRecMenuTimerConflict::GetTimerConflictIndex(void) { } // --- cRecMenuNoTimerConflict --------------------------------------------------------- -cRecMenuNoTimerConflict::cRecMenuNoTimerConflict(void) { +cRecMenuNoTimerConflict::cRecMenuNoTimerConflict(void) { // OK SetWidthPercent(50); - cString text = tr("No Timer Conflicts found"); - cRecMenuItemInfo *infoItem = new cRecMenuItemInfo(*text); - infoItem->CalculateHeight(width - 4 * border); - AddMenuItem(infoItem); - AddMenuItem(new cRecMenuItemButton(tr("Close"), rmsClose, true)); + + const cString line1 = tr("No Timer Conflicts found"); + + AddHeader(new cRecMenuItemInfo(*line1, 1, "", "", "", width - 4 * border)); + AddFooter(new cRecMenuItemButton(tr("Close"), rmsClose, true)); + CalculateHeight(); CreatePixmap(); Arrange();