Better behaviour in cDisplayChannel when switching channels
Commit Message
Hello everybody,
when switching to a channel (for example "21") and there exist no
other channels starting with this number (210, 211, or sth. like
that), VDR displays in the DisplayChannel OSD (and also in my LCD):
"2- ZDF"
"21- EinsExtra"
(When switching to other channels, the dash gets removed after a timeout).
In my opinion, the dash is not needed in this case, so I modified the
corresponding method (see attached patch). Switching to channel 21 now
looks like that:
"2- ZDF"
"21 EinsExtra"
Regards,
Joachim.
Comments
2006/2/20, Joachim Wilke <joachim.wilke@gmail.com>:
> In my opinion, the dash is not needed in this case, so I modified the
> corresponding method (see attached patch). Switching to channel 21 now
> looks like that:
>
> "2- ZDF"
> "21 EinsExtra"
I noticed, that I posted a non-working patch above. Attached is the
corrected version. Sorry for that.
Regards,
Joachim.
@@ -3410,7 +3410,7 @@ eOSState cDisplayChannel::ProcessKey(eKe
}
if (n > 0) {
// This channel is the only one that fits the input, so let's take it right away:
- displayChannel->Flush(); // makes sure the user sees his last input
+ Refresh(); // makes sure the user sees his last input
NewChannel = channel;
withInfo = true;
number = 0;