Skip to content

Commit

Permalink
Set focus to the window we just opened
Browse files Browse the repository at this point in the history
Fixes #7
  • Loading branch information
parnic committed Aug 9, 2019
1 parent db7b188 commit 80e6ac7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ListFiles.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,13 @@ private void OpenSelectedFiles(bool bInSolutionExplorer)
{
var w = (item as ProjectItemWrapper).ProjItem.Open();
w.Visible = true;
w.Activate();
}
catch (Exception)
{
var w = OpenFileInSolutionPackage.GetActiveIDE().ItemOperations.OpenFile((item as ProjectItemWrapper).Path);
w.Visible = true;
w.Activate();
}
}
else
Expand Down

0 comments on commit 80e6ac7

Please sign in to comment.