X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/044fe5e29a9a4fbe50541b67efceeabe5c0d45f5..d801f7ab1029416b489c32e15a857e2ce963015c:/lib/python/Components/SetupDevices.py diff --git a/lib/python/Components/SetupDevices.py b/lib/python/Components/SetupDevices.py index 5ced8451..612bb8c8 100644 --- a/lib/python/Components/SetupDevices.py +++ b/lib/python/Components/SetupDevices.py @@ -4,10 +4,17 @@ from config import configElement from config import ConfigSubsection from config import ConfigSlider from config import configSelection +from config import configText +from Components.Timezones import timezones def InitSetupDevices(): + + def timezoneNotifier(configElement): + timezones.activateTimezone(configElement.value) + config.timezone = ConfigSubsection(); - config.timezone.val = configElement("config.timezone.val", configSelection, 1, ("GMT", "GMT+1", "GMT+2", "GMT+3", "GMT+4", "GMT+5", "GMT+6", "GMT+7", "GMT+8", "GMT+9") ); + config.timezone.val = configElement("config.timezone.val", configSelection, timezones.getDefaultTimezone(), timezones.getTimezoneList()); + config.timezone.val.addNotifier(timezoneNotifier) config.rc = ConfigSubsection(); config.rc.map = configElement("config.rc.map", configSelection, 0, ("Default", "Classic") );