Skip to content

Commit

Permalink
[nfoBarGenerics] Fix aspect ratio change
Browse files Browse the repository at this point in the history
(cherry picked from commit c78ff4f)
  • Loading branch information
Ev0-BH committed Feb 6, 2024
1 parent 5cdebd2 commit 7545e11
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/python/Screens/InfoBarGenerics.py
Original file line number Diff line number Diff line change
Expand Up @@ -4010,7 +4010,8 @@ def aspectSelection(self):
]
keys = ["green", "", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
from Components.AVSwitch import AVSwitch
aspect = AVSwitch.getAspectRatioSetting()
iAVSwitch = AVSwitch()
aspect = iAVSwitch.getAspectRatioSetting()
selection = 0
for item in range(len(aspectList)):
if aspectList[item][1] == aspect:
Expand All @@ -4027,7 +4028,8 @@ def aspectSelected(self, aspect):
self.ExGreen_toggleGreen()
else:
from Components.AVSwitch import AVSwitch
AVSwitch.setAspectRatio(int(aspect[1]))
iAVSwitch = AVSwitch()
iAVSwitch.setAspectRatio(int(aspect[1]))
self.ExGreen_doHide()
else:
self.ExGreen_doHide()
Expand Down

0 comments on commit 7545e11

Please sign in to comment.