Skip to content

Commit

Permalink
[AVSwitch] - add support for AutoResolution plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Ev0-BH committed Feb 10, 2024
1 parent 4295cc4 commit 22d0548
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/python/Components/AVSwitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from Components.config import ConfigBoolean, ConfigEnableDisable, ConfigNothing, ConfigSelection, ConfigSelectionNumber, ConfigSlider, ConfigSubDict, ConfigSubsection, ConfigYesNo, NoSave, config
from Components.SystemInfo import SystemInfo
from Tools.CList import CList
from Tools.Directories import isPluginInstalled
# from Tools.HardwareInfo import HardwareInfo

config.av = ConfigSubsection()
Expand Down Expand Up @@ -92,6 +93,8 @@ def readAvailableModes(self):
SystemInfo["AvailableVideomodes"] = []
SystemInfo["AvailableVideomodes"] = eAVSwitch.getInstance().readAvailableModes().split(" ")
# print(f"[AVSwitch][readAvailableModes] {SystemInfo['AvailableVideomodes']}")
if isPluginInstalled("AutoResolution"):
return SystemInfo["AvailableVideomodes"]

def readPreferredModes(self):
self.modes_preferred = eAVSwitch.getInstance().getPreferredModes(1)
Expand Down

0 comments on commit 22d0548

Please sign in to comment.