mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-23 11:25:00 +00:00
code_review: PR #1442
Trim both `\` (on Windows) and `/` (on Linux/macOS) characters at the end of path Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
20daa584e3
commit
221e964df0
1 changed files with 1 additions and 1 deletions
|
@ -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.TrimEnd('\\');
|
||||
TxtLocation.Text = folderPath.TrimEnd(['\\', '/']);
|
||||
}
|
||||
}
|
||||
catch (Exception exception)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue