disable configure buttons for apps that can't be configured
authorLars Op den Kamp <lars@opdenkamp.eu>
Sat, 6 Oct 2012 11:00:18 +0000 (13:00 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Sat, 6 Oct 2012 11:00:18 +0000 (13:00 +0200)
src/LibCecTray/controller/applications/ApplicationControllerUI.cs
src/LibCecTray/controller/applications/internal/XBMCControllerUI.cs

index de2b97ec954d15d59afd49b5d0968c101a54e213..a9eb3b5fc8dd163010b3ec439cac345520c1a5a9 100644 (file)
@@ -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
index 0b6467c95c7baa3921992bc33b203d5c944bb8ea..9dc6e611cd9ee39233a7ae0ba2803998a45298e5 100644 (file)
@@ -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)