Skip to content

Commit

Permalink
Groups Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SrShadowy committed Nov 24, 2020
1 parent 6141301 commit 23b8a33
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions LauncherDesktop/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -363,20 +363,6 @@ void KeyDown(object sender, KeyEventArgs e)
TextKeys(Convert.ToString(e.KeyCode), true);
Tkeys.x = e.KeyCode;
break;
//Because??? Anyway
/* case Keys.Control:
TextKeys("control", true);
Tkeys.control = true;
break;
case Keys.Alt:
TextKeys("alt", true);
Tkeys.alt = true;
break;
case Keys.Shift:
TextKeys("shift", true);
Tkeys.alt = true;
break;
*/
}

}
Expand Down Expand Up @@ -1389,18 +1375,28 @@ private void renomeiarToolStripMenuItem_Click(object sender, EventArgs e)

if(rest == DialogResult.OK)
{

int index = listitens.SelectedItems[0].Index;


string arq = mylist.Items[index].ToString();
string[] Rename = arq.Split('|');

if (Rename.Length > 1)
mylist.Items[index] = Rename[0] + "|" + newname;
else
mylist.Items[index] += "|" + newname;


var itemIndex = listitens.Items.IndexOf(listitens.SelectedItems[0]);
int removeAt = ConfigGroups.FindStringExact(listitens.Items[itemIndex].Text);
if (removeAt > 0)
{
ConfigGroups.Items.RemoveAt(removeAt);
}
listitens.SelectedItems[0].Text = newname;

string newGroup = listitens.Items[itemIndex].Text + ":" + listitens.SelectedItems[0].Group.Header;
ChangeGroup(newGroup);
ChangueItens();
}

Expand Down

0 comments on commit 23b8a33

Please sign in to comment.