X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2FLibCecTray%2Fcontroller%2Fapplications%2FApplicationController.cs;h=4d23071946db8ecfff2e61d5fc32c9a4e5240581;hb=324a4cb1d256252a4cd506e90e158828e160b0ed;hp=310f30f8ef05e12f25dbf04ecb3ae320912fb895;hpb=177e3a7bd4b27cd89d1bebde78e9dbbd804e0f71;p=deb_libcec.git diff --git a/src/LibCecTray/controller/applications/ApplicationController.cs b/src/LibCecTray/controller/applications/ApplicationController.cs index 310f30f..4d23071 100644 --- a/src/LibCecTray/controller/applications/ApplicationController.cs +++ b/src/LibCecTray/controller/applications/ApplicationController.cs @@ -353,18 +353,7 @@ namespace LibCECTray.controller.applications private CecButtonConfig _buttonConfig; public CecButtonConfig ButtonConfig { - get - { - if (_buttonConfig == null) - { - _buttonConfig = new CecButtonConfig(this); - foreach (CecUserControlCode key in Enum.GetValues(typeof(CecUserControlCode))) - _buttonConfig.Add(new CecButtonConfigItem(this, (new CecKeypress { Keycode = key }))); - - _buttonConfig.Load(); - } - return _buttonConfig; - } + get { return _buttonConfig ?? (_buttonConfig = new CecButtonConfig(this)); } } public CECSettings Settings;