mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-28 01:21:49 +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>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem x:Name="contReadingsTab" Header="Controller Readings">
|
<TabItem x:Name="contReadingsTab" Header="Controller Readings" IsEnabled="False">
|
||||||
<local:ControllerReadingsControl x:Name="conReadingsUserCon" />
|
<local:ControllerReadingsControl x:Name="conReadingsUserCon" />
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</TabControl>
|
</TabControl>
|
||||||
|
@ -539,11 +539,13 @@ namespace DS4WinWPF.DS4Forms
|
|||||||
{
|
{
|
||||||
useControllerUD.Value = device + 1;
|
useControllerUD.Value = device + 1;
|
||||||
conReadingsUserCon.UseDevice(device);
|
conReadingsUserCon.UseDevice(device);
|
||||||
|
contReadingsTab.IsEnabled = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
useControllerUD.Value = 1;
|
useControllerUD.Value = 1;
|
||||||
conReadingsUserCon.UseDevice(0);
|
conReadingsUserCon.UseDevice(0);
|
||||||
|
contReadingsTab.IsEnabled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
conReadingsUserCon.EnableControl(false);
|
conReadingsUserCon.EnableControl(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user