Skip to content

Commit

Permalink
fix explore folder with modified shell
Browse files Browse the repository at this point in the history
  • Loading branch information
setsumi committed Jul 3, 2023
1 parent 6dbd1ea commit 3ca2a9f
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/syosetuDownloader/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public partial class MainWindow : Window
Shell32.Shell _shell;
string _exe_dir;
string _dl_dir;
readonly string _version = "2.4.0 plus 19";
readonly string _version = "2.4.0 plus 20";

public Util.GridViewTool.SortInfo sortInfo = new Util.GridViewTool.SortInfo();

Expand Down Expand Up @@ -275,7 +275,13 @@ private void Download()
};
lb.MouseDown += (snt, evt) =>
{
_shell.Explore(Path.Combine(_dl_dir, sc.SeriesTitle));
//_shell.Explore(Path.Combine(_dl_dir, sc.SeriesTitle));
var psi = new ProcessStartInfo
{
FileName = Path.Combine(_dl_dir, sc.SeriesTitle),
UseShellExecute = true
};
Process.Start(psi);
};

scrollViewer1.ScrollToLeftEnd();
Expand Down Expand Up @@ -333,7 +339,13 @@ private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs

private void btnExplore_Click(object sender, RoutedEventArgs e)
{
_shell.Explore(_dl_dir);
//_shell.Explore(_dl_dir);
var psi = new ProcessStartInfo
{
FileName = _dl_dir,
UseShellExecute = true
};
Process.Start(psi);
}

private void btnHistory_Click(object sender, RoutedEventArgs e)
Expand Down

0 comments on commit 3ca2a9f

Please sign in to comment.