Skip to content

Commit

Permalink
Add context menu to modlist with delete button
Browse files Browse the repository at this point in the history
  • Loading branch information
Reisyukaku committed Nov 27, 2022
1 parent 499cf95 commit 2c02d0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GFTool.FilesystemExplorer/FileSystemForm.cs
Expand Up @@ -527,9 +527,9 @@ private void disableTRPFDAutoloadToolStripMenuItem_CheckedChanged(object sender,
private void deleteModBut_Click(object sender, EventArgs e)
{
var file = "mods/" + modList.Items[modList.SelectedIndex].ToString();
Trace.WriteLine(file);
if (File.Exists(file)) {
File.Delete(file);
modList.Items.Remove(modList.Items[modList.SelectedIndex]);
}
}

Expand Down

0 comments on commit 2c02d0b

Please sign in to comment.