mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-22 17:29:18 +01:00
fixed crash when changing profiles via context menu
This commit is contained in:
parent
794cefe2e6
commit
335a411230
@ -445,6 +445,7 @@ namespace ScpServer
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
for (int i = 0; i < tS.DropDownItems.Count; i++)
|
for (int i = 0; i < tS.DropDownItems.Count; i++)
|
||||||
|
if (!(shortcuts[tdevice].DropDownItems[i] is ToolStripSeparator))
|
||||||
((ToolStripMenuItem)tS.DropDownItems[i]).Checked = false;
|
((ToolStripMenuItem)tS.DropDownItems[i]).Checked = false;
|
||||||
((ToolStripMenuItem)e.ClickedItem).Checked = true;
|
((ToolStripMenuItem)e.ClickedItem).Checked = true;
|
||||||
cbs[tdevice].SelectedIndex = tS.DropDownItems.IndexOf(e.ClickedItem);
|
cbs[tdevice].SelectedIndex = tS.DropDownItems.IndexOf(e.ClickedItem);
|
||||||
@ -515,4 +516,3 @@ namespace ScpServer
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user