Skip to content

Commit a41d974

Browse files
[InfoBarResolutionSelection] Fix videoMode suffix
rates["PC"][x][-1].isdigit() but have no rate! For example "640x480" was "640x480Hz"
1 parent eaf5fe4 commit a41d974

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/python/Screens/InfoBarGenerics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4321,8 +4321,8 @@ def resolutionSelection(self):
43214321
video = videoMode
43224322
if videoMode.endswith("23"):
43234323
video = "%s.976" % videoMode
4324-
if videoMode[-1].isdigit():
4325-
video = "%sHz" % videoMode
4324+
if videoMode[-1].isdigit() and "x" not in videoMode or "_" in videoMode:
4325+
video = "%sHz" % videoMode.replace("_", " ")
43264326
resList.append((video, videoMode))
43274327
videoMode = avControl.getVideoMode("Unknown")
43284328
keys = ["green", "yellow", "blue", "", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]

0 commit comments

Comments
 (0)