mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 20:24:59 +00:00
fix: when base is current worktree, the diff content of selected change is wrong
* remove warnings in JetBrains Rider (it seems JetBrains can NOT recognize Binding.TargetNullValue)
This commit is contained in:
parent
4612cecf10
commit
20b45a1cf4
7 changed files with 31 additions and 42 deletions
|
@ -15,7 +15,7 @@ namespace SourceGit.ViewModels
|
|||
{
|
||||
_repo = repo;
|
||||
|
||||
Mode = null;
|
||||
Mode = new Models.Null();
|
||||
View = new Views.Discard { DataContext = this };
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,7 @@ namespace SourceGit.ViewModels
|
|||
_isUnstaged = isUnstaged;
|
||||
|
||||
if (_changes == null)
|
||||
Mode = null;
|
||||
Mode = new Models.Null();
|
||||
else if (_changes.Count == 1)
|
||||
Mode = _changes[0].Path;
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue