Skip to content

Commit 20daa58

Browse files
fix: fix working tree folder path detection error (#1442)
Fix the error of adding an extra slash when selecting a working tree directory.
1 parent c5ad4b8 commit 20daa58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Views/AddWorktree.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ private async void SelectLocation(object _, RoutedEventArgs e)
2626
{
2727
var folder = selected[0];
2828
var folderPath = folder is { Path: { IsAbsoluteUri: true } path } ? path.LocalPath : folder?.Path.ToString();
29-
TxtLocation.Text = folderPath;
29+
TxtLocation.Text = folderPath.TrimEnd('\\');
3030
}
3131
}
3232
catch (Exception exception)

0 commit comments

Comments
 (0)