From: Lars Op den Kamp Date: Sat, 6 Oct 2012 11:00:18 +0000 (+0200) Subject: disable configure buttons for apps that can't be configured X-Git-Tag: upstream/2.2.0~1^2~17^2^2~29 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=5db8689e8c3471de146008a9e226d883a35ed037;p=deb_libcec.git disable configure buttons for apps that can't be configured --- diff --git a/src/LibCecTray/controller/applications/ApplicationControllerUI.cs b/src/LibCecTray/controller/applications/ApplicationControllerUI.cs index de2b97e..a9eb3b5 100644 --- a/src/LibCecTray/controller/applications/ApplicationControllerUI.cs +++ b/src/LibCecTray/controller/applications/ApplicationControllerUI.cs @@ -53,6 +53,8 @@ namespace LibCECTray.controller.applications _controller.ControlApplication.ReplaceControls(this, Controls, cbControlApplication); _controller.SuppressKeypressWhenSelected.ReplaceControls(this, Controls, cbSuppressKeypress); _controller.StartFullScreen.ReplaceControls(this, Controls, cbStartFullScreen); + + bConfigure.Enabled = _controller.CanConfigureProcess; } public override sealed string Text diff --git a/src/LibCecTray/controller/applications/internal/XBMCControllerUI.cs b/src/LibCecTray/controller/applications/internal/XBMCControllerUI.cs index 0b6467c..9dc6e61 100644 --- a/src/LibCecTray/controller/applications/internal/XBMCControllerUI.cs +++ b/src/LibCecTray/controller/applications/internal/XBMCControllerUI.cs @@ -76,7 +76,7 @@ namespace LibCECTray.controller.applications.@internal SetControlEnabled(_controller.SendInactiveSource.ValueControl, val); SetControlEnabled(bSaveConfig, val); SetControlEnabled(bLoadConfig, val); - SetControlEnabled(bConfigure, val); + SetControlEnabled(bConfigure, _controller.CanConfigureProcess && val); } public override void SetStartButtonEnabled(bool val)