mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Adapted "Setup/Miscellaneous/Show channel names with source" to the new handling in cChannel
This commit is contained in:
parent
8bd0437497
commit
561be36958
2
HISTORY
2
HISTORY
@ -9894,3 +9894,5 @@ Video Disk Recorder Revision History
|
|||||||
- Added missing initialization of cChannel::nameSourceMode (thanks to Winfried Köhler).
|
- Added missing initialization of cChannel::nameSourceMode (thanks to Winfried Köhler).
|
||||||
- Modified handling channel names with source to make it thread safe (thanks to
|
- Modified handling channel names with source to make it thread safe (thanks to
|
||||||
Stefan Herdler).
|
Stefan Herdler).
|
||||||
|
- Adapted "Setup/Miscellaneous/Show channel names with source" to the new handling
|
||||||
|
in cChannel.
|
||||||
|
12
menu.c
12
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 5.10 2024/01/19 12:17:05 kls Exp $
|
* $Id: menu.c 5.11 2024/03/02 21:49:21 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
@ -4285,9 +4285,17 @@ eOSState cMenuSetupMisc::ProcessKey(eKeys Key)
|
|||||||
{
|
{
|
||||||
bool OldSVDRPPeering = data.SVDRPPeering;
|
bool OldSVDRPPeering = data.SVDRPPeering;
|
||||||
bool ModifiedSVDRPSettings = false;
|
bool ModifiedSVDRPSettings = false;
|
||||||
if (Key == kOk)
|
bool ModifiedShowChannelNamesWithSource = false;
|
||||||
|
if (Key == kOk) {
|
||||||
ModifiedSVDRPSettings = data.SVDRPPeering != Setup.SVDRPPeering || strcmp(data.SVDRPHostName, Setup.SVDRPHostName);
|
ModifiedSVDRPSettings = data.SVDRPPeering != Setup.SVDRPPeering || strcmp(data.SVDRPHostName, Setup.SVDRPHostName);
|
||||||
|
ModifiedShowChannelNamesWithSource = data.ShowChannelNamesWithSource != Setup.ShowChannelNamesWithSource;
|
||||||
|
}
|
||||||
eOSState state = cMenuSetupBase::ProcessKey(Key);
|
eOSState state = cMenuSetupBase::ProcessKey(Key);
|
||||||
|
if (ModifiedShowChannelNamesWithSource) {
|
||||||
|
LOCK_CHANNELS_WRITE;
|
||||||
|
for (cChannel *Channel = Channels->First(); Channel; Channel = Channels->Next(Channel))
|
||||||
|
Channel->UpdateNameSource();
|
||||||
|
}
|
||||||
if (data.SVDRPPeering != OldSVDRPPeering)
|
if (data.SVDRPPeering != OldSVDRPPeering)
|
||||||
Set();
|
Set();
|
||||||
if (ModifiedSVDRPSettings) {
|
if (ModifiedSVDRPSettings) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user