mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-21 10:25:00 +00:00
fix: fix working tree folder path detection error
Fix the error of adding an extra slash when selecting a working tree directory.
This commit is contained in:
parent
74d77ab704
commit
a29a35059b
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ namespace SourceGit.Views
|
||||||
{
|
{
|
||||||
var folder = selected[0];
|
var folder = selected[0];
|
||||||
var folderPath = folder is { Path: { IsAbsoluteUri: true } path } ? path.LocalPath : folder?.Path.ToString();
|
var folderPath = folder is { Path: { IsAbsoluteUri: true } path } ? path.LocalPath : folder?.Path.ToString();
|
||||||
TxtLocation.Text = folderPath;
|
TxtLocation.Text = folderPath.TrimEnd('\\');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue