From 43d12be8fa46e97bc4354e7e7d8b65f662cc5ed6 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Sat, 7 Sep 2019 09:08:09 -0500 Subject: [PATCH] Fixed exclusive icon visibility --- DS4Windows/DS4Forms/DS4Form.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DS4Windows/DS4Forms/DS4Form.cs b/DS4Windows/DS4Forms/DS4Form.cs index a81fce3..c375711 100644 --- a/DS4Windows/DS4Forms/DS4Form.cs +++ b/DS4Windows/DS4Forms/DS4Form.cs @@ -1547,14 +1547,15 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question default: statPB[Index].Visible = false; toolTip1.SetToolTip(statPB[Index], ""); break; } - exclusivePB[Index].Visible = true; DS4Device dev = Program.rootHub.DS4Controllers[Index]; if (dev != null) { + exclusivePB[Index].Visible = true; exclusivePB[Index].Image = dev.IsExclusive ? Properties.Resources._checked : Properties.Resources.cancel; } else { + exclusivePB[Index].Visible = false; exclusivePB[Index].Image = Properties.Resources.cancel; }