mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-26 02:54:20 +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
|
||||
{
|
||||
for (int i = 0; i < tS.DropDownItems.Count; i++)
|
||||
if (!(shortcuts[tdevice].DropDownItems[i] is ToolStripSeparator))
|
||||
((ToolStripMenuItem)tS.DropDownItems[i]).Checked = false;
|
||||
((ToolStripMenuItem)e.ClickedItem).Checked = true;
|
||||
cbs[tdevice].SelectedIndex = tS.DropDownItems.IndexOf(e.ClickedItem);
|
||||
@ -515,4 +516,3 @@ namespace ScpServer
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user