mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-02-18 08:56:20 +01:00
Clicking on the selected profile in the context menu now lets you edit it
This commit is contained in:
parent
6fcba28093
commit
56a39414ed
@ -428,6 +428,21 @@ namespace ScpServer
|
|||||||
ToolStripMenuItem tS = (ToolStripMenuItem)sender;
|
ToolStripMenuItem tS = (ToolStripMenuItem)sender;
|
||||||
int tdevice = Int32.Parse(tS.Tag.ToString());
|
int tdevice = Int32.Parse(tS.Tag.ToString());
|
||||||
if (e.ClickedItem != tS.DropDownItems[tS.DropDownItems.Count - 1])
|
if (e.ClickedItem != tS.DropDownItems[tS.DropDownItems.Count - 1])
|
||||||
|
if (((ToolStripMenuItem)e.ClickedItem).Checked)
|
||||||
|
{
|
||||||
|
Options opt = OptionsDialog[tdevice] = new Options(rootHub, tdevice, e.ClickedItem.Text, this);
|
||||||
|
opt.Text = "Options for Controller " + (tdevice + 1);
|
||||||
|
opt.Icon = this.Icon;
|
||||||
|
int i = tdevice;
|
||||||
|
opt.FormClosed += delegate
|
||||||
|
{
|
||||||
|
OptionsDialog[i] = null;
|
||||||
|
Enable_Controls(i, true);
|
||||||
|
};
|
||||||
|
opt.Show();
|
||||||
|
Enable_Controls(i, false);
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
for (int i = 0; i < tS.DropDownItems.Count; i++)
|
for (int i = 0; i < tS.DropDownItems.Count; i++)
|
||||||
((ToolStripMenuItem)tS.DropDownItems[i]).Checked = false;
|
((ToolStripMenuItem)tS.DropDownItems[i]).Checked = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user