From: ghost Date: Wed, 5 Aug 2009 15:38:15 +0000 (+0200) Subject: Plugins/Videomode/VideoHardware.py: remove DVI-PC when not DVI-PC modes are usable X-Git-Tag: 2.6.0~161 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/344ffd10a4f5b54546fe5e382dbf40a8cf7ecdbb?hp=54f1c13b2a5979606411117108b60183b0835a85 Plugins/Videomode/VideoHardware.py: remove DVI-PC when not DVI-PC modes are usable --- diff --git a/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py b/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py index 64f79e04..71529a03 100644 --- a/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py +++ b/lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py @@ -95,6 +95,10 @@ class VideoHardware: self.readAvailableModes() + if self.modes.has_key("DVI-PC") and not self.getModeList("DVI-PC"): + print "remove DVI-PC because of not existing modes" + del self.modes["DVI-PC"] + self.createConfig() # self.on_hotplug.append(self.createConfig)