mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-27 09:01:48 +01:00
Disable Controller Readings tab when not associated with a controller and profile
Related to issue #1070
This commit is contained in:
parent
90f5a1b5d7
commit
a51d789177
@ -323,7 +323,7 @@
|
||||
</DockPanel>
|
||||
</DockPanel>
|
||||
</TabItem>
|
||||
<TabItem x:Name="contReadingsTab" Header="Controller Readings">
|
||||
<TabItem x:Name="contReadingsTab" Header="Controller Readings" IsEnabled="False">
|
||||
<local:ControllerReadingsControl x:Name="conReadingsUserCon" />
|
||||
</TabItem>
|
||||
</TabControl>
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user