mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
optimize<WorkingCopy>: clear LastViewChange first before re-assign it
This commit is contained in:
parent
fcec38b7e7
commit
f944ded171
1 changed files with 4 additions and 0 deletions
|
@ -210,6 +210,7 @@ namespace SourceGit.UI {
|
|||
var selected = Helpers.TreeViewHelper.GetSelectedItems(unstagedTree);
|
||||
if (selected.Count == 0) return;
|
||||
|
||||
LastViewChange = null;
|
||||
mergePanel.Visibility = Visibility.Collapsed;
|
||||
diffViewer.Reset();
|
||||
Helpers.TreeViewHelper.UnselectTree(stageTree);
|
||||
|
@ -245,6 +246,7 @@ namespace SourceGit.UI {
|
|||
var selected = unstagedList.SelectedItems;
|
||||
if (selected.Count == 0) return;
|
||||
|
||||
LastViewChange = null;
|
||||
mergePanel.Visibility = Visibility.Collapsed;
|
||||
diffViewer.Reset();
|
||||
Helpers.TreeViewHelper.UnselectTree(stageTree);
|
||||
|
@ -619,6 +621,7 @@ namespace SourceGit.UI {
|
|||
var selected = Helpers.TreeViewHelper.GetSelectedItems(stageTree);
|
||||
if (selected.Count == 0) return;
|
||||
|
||||
LastViewChange = null;
|
||||
mergePanel.Visibility = Visibility.Collapsed;
|
||||
diffViewer.Reset();
|
||||
Helpers.TreeViewHelper.UnselectTree(unstagedTree);
|
||||
|
@ -643,6 +646,7 @@ namespace SourceGit.UI {
|
|||
var selected = stageList.SelectedItems;
|
||||
if (selected.Count == 0) return;
|
||||
|
||||
LastViewChange = null;
|
||||
mergePanel.Visibility = Visibility.Collapsed;
|
||||
diffViewer.Reset();
|
||||
Helpers.TreeViewHelper.UnselectTree(unstagedTree);
|
||||
|
|
Loading…
Reference in a new issue