Skip to content

Commit

Permalink
Fixed can now open folders with commas
Browse files Browse the repository at this point in the history
Also removed lvResults.Sort() as it wasn't doing anything except slowing down searches
  • Loading branch information
40163650 authored Jun 28, 2022
1 parent 44d4d86 commit 30b33d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Results.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ public void SetupColumns()

public void ResizeListView(object sender, EventArgs e)
{
lvResults.Sort();
for (int i = 0; i < lvResults.Columns.Count; i++)
{
lvResults.AutoResizeColumn(i, ColumnHeaderAutoResizeStyle.ColumnContent);
Expand Down Expand Up @@ -179,7 +178,7 @@ private void btOpen_Click(object sender, EventArgs e)
combined = combined.Replace(@"\\", @"\"); // Again
combined = combined.Replace(@"/", @"\");

Process.Start("explorer.exe", combined); // This is very particular about the right slashes
Process.Start("explorer.exe", "\"" + combined + "\""); // This is very particular about the right slashes
}

private void tbFilter_TextChanged(object sender, EventArgs e)
Expand Down

0 comments on commit 30b33d0

Please sign in to comment.