1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Added a missing setting of lastFreeMB in cMenuMain::Update()

This commit is contained in:
Klaus Schmidinger 2008-01-13 12:44:19 +01:00
parent 39a3ad2b2e
commit 4337f88820
3 changed files with 5 additions and 1 deletions

View File

@ -1604,6 +1604,7 @@ Andreas Brugger <brougs78@gmx.net>
for suggesting to propagate the kInfo key to any open menu, so that it can react to for suggesting to propagate the kInfo key to any open menu, so that it can react to
it in a context sensitive manner it in a context sensitive manner
for reporting a loss of the date display in the "classic" skin's main menu for reporting a loss of the date display in the "classic" skin's main menu
for reporting a missing setting of lastFreeMB in cMenuMain::Update()
Dino Ravnic <dino.ravnic@fer.hr> Dino Ravnic <dino.ravnic@fer.hr>
for fixing some characters in the iso8859-2 font file for fixing some characters in the iso8859-2 font file

View File

@ -5547,3 +5547,5 @@ Video Disk Recorder Revision History
- Fixed error handling in cCuttingThread::Action() (thanks to Udo Richter). - Fixed error handling in cCuttingThread::Action() (thanks to Udo Richter).
- Fixed a loss of the date display in the "classic" skin's main menu (reported by - Fixed a loss of the date display in the "classic" skin's main menu (reported by
Andreas Brugger). Andreas Brugger).
- Added a missing setting of lastFreeMB in cMenuMain::Update() (reported by
Andreas Brugger).

3
menu.c
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: menu.c 1.467 2007/11/25 14:52:03 kls Exp $ * $Id: menu.c 1.468 2008/01/13 12:43:09 kls Exp $
*/ */
#include "menu.h" #include "menu.h"
@ -3015,6 +3015,7 @@ bool cMenuMain::Update(bool Force)
Minutes %= 60; Minutes %= 60;
//XXX -> skin function!!! //XXX -> skin function!!!
SetTitle(cString::sprintf("%s - %s %d%% - %2d:%02d %s", tr("VDR"), tr("Disk"), Percent, Hours, Minutes, tr("free"))); SetTitle(cString::sprintf("%s - %s %d%% - %2d:%02d %s", tr("VDR"), tr("Disk"), Percent, Hours, Minutes, tr("free")));
lastFreeMB = FreeMB;
result = true; result = true;
} }
lastDiskSpaceCheck = time(NULL); lastDiskSpaceCheck = time(NULL);