fix(DiffViewer): hide original file name when it's /dev/null

This commit is contained in:
leo 2020-08-03 20:11:25 +08:00
parent a743cf6bd5
commit 90b92b1944

View file

@ -80,7 +80,7 @@ namespace SourceGit.UI {
/// <param name="orgFile"></param>
private void SetTitle(string file, string orgFile) {
fileName.Text = file;
if (!string.IsNullOrEmpty(orgFile)) {
if (!string.IsNullOrEmpty(orgFile) && orgFile != "/dev/null") {
orgFileNamePanel.Visibility = Visibility.Visible;
orgFileName.Text = orgFile;
} else {