mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
fix(DiffViewer): hide original file name when it's /dev/null
This commit is contained in:
parent
a743cf6bd5
commit
90b92b1944
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ namespace SourceGit.UI {
|
||||||
/// <param name="orgFile"></param>
|
/// <param name="orgFile"></param>
|
||||||
private void SetTitle(string file, string orgFile) {
|
private void SetTitle(string file, string orgFile) {
|
||||||
fileName.Text = file;
|
fileName.Text = file;
|
||||||
if (!string.IsNullOrEmpty(orgFile)) {
|
if (!string.IsNullOrEmpty(orgFile) && orgFile != "/dev/null") {
|
||||||
orgFileNamePanel.Visibility = Visibility.Visible;
|
orgFileNamePanel.Visibility = Visibility.Visible;
|
||||||
orgFileName.Text = orgFile;
|
orgFileName.Text = orgFile;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue