mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
optimize<WorkingCopy>: clear selection after WorkingCopy unloaded
This commit is contained in:
parent
2aacec75b4
commit
91ef4e44a4
1 changed files with 4 additions and 0 deletions
|
@ -13,6 +13,10 @@ namespace SourceGit.Views {
|
|||
|
||||
protected override void OnUnloaded(RoutedEventArgs e) {
|
||||
var vm = DataContext as ViewModels.WorkingCopy;
|
||||
vm.SelectedStagedChange = null;
|
||||
vm.SelectedStagedTreeNode = null;
|
||||
vm.SelectedUnstagedChange = null;
|
||||
vm.SelectedUnstagedTreeNode = null;
|
||||
vm.SetDetail(null, false);
|
||||
|
||||
base.OnUnloaded(e);
|
||||
|
|
Loading…
Reference in a new issue