Skip to content

Commit 4885899

Browse files
committed
Update CreateShortcutDialogViewModel.cs
1 parent f7dbb69 commit 4885899

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Files.App/ViewModels/Dialogs/CreateShortcutDialogViewModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,10 @@ private async Task CreateShortcut()
110110
if (string.IsNullOrEmpty(destinationName))
111111
{
112112
var destinationPath = DestinationItemPath.Replace('/', '\\');
113+
113114
if (destinationPath.EndsWith('\\'))
114115
destinationPath = destinationPath.Substring(0, destinationPath.Length - 1);
116+
115117
destinationName = destinationPath.Substring(destinationPath.LastIndexOf('\\') + 1);
116118
}
117119
}

0 commit comments

Comments
 (0)