ux: do not show /dev/null in DiffView for new file

This commit is contained in:
leo 2024-05-10 16:01:20 +08:00
parent 65ccc9fc7b
commit 37f5472186

View file

@ -133,7 +133,7 @@ namespace SourceGit.ViewModels
Dispatcher.UIThread.Post(() =>
{
if (string.IsNullOrEmpty(_option.OrgPath))
if (string.IsNullOrEmpty(_option.OrgPath) || _option.OrgPath == "/dev/null")
Title = _option.Path;
else
Title = $"{_option.OrgPath} → {_option.Path}";