mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Displaying command to be executed in status line
This commit is contained in:
parent
a9e4cc7d63
commit
ca479d90df
4
HISTORY
4
HISTORY
@ -1131,3 +1131,7 @@ Video Disk Recorder Revision History
|
|||||||
- Workaround for displaying still frames with the unpatched LinuxDVB driver
|
- Workaround for displaying still frames with the unpatched LinuxDVB driver
|
||||||
(if anybody ever finds out why the unpatched driver doesn't display VDR's
|
(if anybody ever finds out why the unpatched driver doesn't display VDR's
|
||||||
still frames, please let me know).
|
still frames, please let me know).
|
||||||
|
- When executing a command from the "Commands" menu, the title of that command
|
||||||
|
is now immediately shown in the status line (followed by "...") to give the
|
||||||
|
user some feedback that the command is being executed, which is especially
|
||||||
|
important if this takes some time.
|
||||||
|
7
menu.c
7
menu.c
@ -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.173 2002/03/22 14:39:04 kls Exp $
|
* $Id: menu.c 1.174 2002/03/23 15:10:20 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
@ -2231,6 +2231,11 @@ eOSState cMenuCommands::Execute(void)
|
|||||||
{
|
{
|
||||||
cCommand *command = Commands.Get(Current());
|
cCommand *command = Commands.Get(Current());
|
||||||
if (command) {
|
if (command) {
|
||||||
|
char *buffer = NULL;
|
||||||
|
asprintf(&buffer, "%s...", command->Title());
|
||||||
|
Interface->Status(buffer);
|
||||||
|
Interface->Flush();
|
||||||
|
delete buffer;
|
||||||
const char *Result = command->Execute();
|
const char *Result = command->Execute();
|
||||||
if (Result)
|
if (Result)
|
||||||
return AddSubMenu(new cMenuText(command->Title(), Result, fontFix));
|
return AddSubMenu(new cMenuText(command->Title(), Result, fontFix));
|
||||||
|
Loading…
Reference in New Issue
Block a user