Skip to content

Commit 37b0240

Browse files
author
Meir Klemfner
committed
Recent items now running in their directory.
1 parent ff16c74 commit 37b0240

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)