Skip to content

Commit d460e8f

Browse files
authored
Merge pull request #2165 from MeirKlemp/issue-1844
Recent items now running in their directory.
2 parents ff16c74 + 37b0240 commit d460e8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Files/UserControls/Widgets/RecentFiles.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ private async void RecentsView_ItemClick(object sender, ItemClickEventArgs e)
149149
var path = (e.ClickedItem as RecentItem).RecentPath;
150150
try
151151
{
152-
await Interaction.InvokeWin32Component(path);
152+
var directoryName = Path.GetDirectoryName(path);
153+
await Interaction.InvokeWin32Component(path, workingDir: directoryName);
153154
}
154155
catch (UnauthorizedAccessException)
155156
{

0 commit comments

Comments
 (0)