fix: fix working tree folder path detection error (#1442)

Fix the error of adding an extra slash when selecting a working tree directory.
This commit is contained in:
Ihor 2025-06-21 08:25:55 +06:00 committed by GitHub
parent c5ad4b837d
commit 20daa584e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,7 +26,7 @@ namespace SourceGit.Views
{
var folder = selected[0];
var folderPath = folder is { Path: { IsAbsoluteUri: true } path } ? path.LocalPath : folder?.Path.ToString();
TxtLocation.Text = folderPath;
TxtLocation.Text = folderPath.TrimEnd('\\');
}
}
catch (Exception exception)