Fixed unnecessary calls to DisplayCurrent() for editable menu items

This commit is contained in:
Klaus Schmidinger 2025-01-29 10:35:25 +01:00
parent 49dc61a92c
commit ead135f716
3 changed files with 6 additions and 2 deletions

View File

@ -2592,6 +2592,7 @@ Markus Ehrnsperger <markus.ehrnsperger@googlemail.com>
for fixing handling margins for timers that are not VPS controlled and not spawned
for implementing cStatus::OsdItem2() with the information whether the item is selectable
for reporting an improper call of cStatus::OsdCurrentItem() before cStatus::OsdItem2()
for fixing unnecessary calls to DisplayCurrent() for editable menu items
Werner Färber <w.faerber@gmx.de>
for reporting a bug in handling the cPluginManager::Active() result when pressing

View File

@ -10066,3 +10066,5 @@ Video Disk Recorder Revision History
- Fixed an improper call of cStatus::OsdCurrentItem() before cStatus::OsdItem2() (reported
by Markus Ehrnsperger).
- Fixed an unnecessary redisplay of the menu when pressing a hotkey.
- Fixed unnecessary calls to DisplayCurrent() for editable menu items (thanks to Markus
Ehrnsperger).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: osdbase.c 5.3 2025/01/29 10:25:55 kls Exp $
* $Id: osdbase.c 5.4 2025/01/29 10:35:25 kls Exp $
*/
#include "osdbase.h"
@ -541,6 +541,7 @@ eOSState cOsdMenu::ProcessKey(eKeys Key)
if (marked < 0 && item) {
eOSState state = item->ProcessKey(Key);
if (state != osUnknown) {
if (Key != kNone)
DisplayCurrent(true);
return state;
}