mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-26 11:04:21 +01:00
Fixed exclusive icon visibility
This commit is contained in:
parent
e89c8b6c3a
commit
43d12be8fa
@ -1547,14 +1547,15 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
|
|||||||
default: statPB[Index].Visible = false; toolTip1.SetToolTip(statPB[Index], ""); break;
|
default: statPB[Index].Visible = false; toolTip1.SetToolTip(statPB[Index], ""); break;
|
||||||
}
|
}
|
||||||
|
|
||||||
exclusivePB[Index].Visible = true;
|
|
||||||
DS4Device dev = Program.rootHub.DS4Controllers[Index];
|
DS4Device dev = Program.rootHub.DS4Controllers[Index];
|
||||||
if (dev != null)
|
if (dev != null)
|
||||||
{
|
{
|
||||||
|
exclusivePB[Index].Visible = true;
|
||||||
exclusivePB[Index].Image = dev.IsExclusive ? Properties.Resources._checked : Properties.Resources.cancel;
|
exclusivePB[Index].Image = dev.IsExclusive ? Properties.Resources._checked : Properties.Resources.cancel;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
exclusivePB[Index].Visible = false;
|
||||||
exclusivePB[Index].Image = Properties.Resources.cancel;
|
exclusivePB[Index].Image = Properties.Resources.cancel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user