From 90b92b1944c57aa687a242428568750765dbe832 Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 3 Aug 2020 20:11:25 +0800 Subject: [PATCH] fix(DiffViewer): hide original file name when it's /dev/null --- SourceGit/UI/DiffViewer.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SourceGit/UI/DiffViewer.xaml.cs b/SourceGit/UI/DiffViewer.xaml.cs index 13543928..17a25462 100644 --- a/SourceGit/UI/DiffViewer.xaml.cs +++ b/SourceGit/UI/DiffViewer.xaml.cs @@ -80,7 +80,7 @@ namespace SourceGit.UI { /// 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 {