From a51d7891777c6ab88bba159c4c3c43ac9fcdf059 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Sun, 15 Mar 2020 00:58:29 -0500 Subject: [PATCH] Disable Controller Readings tab when not associated with a controller and profile Related to issue #1070 --- DS4Windows/DS4Forms/ProfileEditor.xaml | 2 +- DS4Windows/DS4Forms/ProfileEditor.xaml.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/DS4Windows/DS4Forms/ProfileEditor.xaml b/DS4Windows/DS4Forms/ProfileEditor.xaml index 9750628..bc2074c 100644 --- a/DS4Windows/DS4Forms/ProfileEditor.xaml +++ b/DS4Windows/DS4Forms/ProfileEditor.xaml @@ -323,7 +323,7 @@ - + diff --git a/DS4Windows/DS4Forms/ProfileEditor.xaml.cs b/DS4Windows/DS4Forms/ProfileEditor.xaml.cs index 27035ce..55b1af4 100644 --- a/DS4Windows/DS4Forms/ProfileEditor.xaml.cs +++ b/DS4Windows/DS4Forms/ProfileEditor.xaml.cs @@ -539,11 +539,13 @@ namespace DS4WinWPF.DS4Forms { useControllerUD.Value = device + 1; conReadingsUserCon.UseDevice(device); + contReadingsTab.IsEnabled = true; } else { useControllerUD.Value = 1; conReadingsUserCon.UseDevice(0); + contReadingsTab.IsEnabled = false; } conReadingsUserCon.EnableControl(false);