style<Repository>: normalize repository's path

This commit is contained in:
leo 2024-03-01 13:40:12 +08:00
parent 1c005983c7
commit e3a7abe776
7 changed files with 26 additions and 19 deletions

View file

@ -6,7 +6,10 @@ namespace SourceGit.ViewModels {
public class RepositoryNode : ObservableObject {
public string Id {
get => _id;
set => SetProperty(ref _id, value);
set {
var normalized = value.Replace('\\', '/');
SetProperty(ref _id, normalized);
}
}
public string Name {