mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08: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) {
|
protected override void OnUnloaded(RoutedEventArgs e) {
|
||||||
var vm = DataContext as ViewModels.WorkingCopy;
|
var vm = DataContext as ViewModels.WorkingCopy;
|
||||||
|
vm.SelectedStagedChange = null;
|
||||||
|
vm.SelectedStagedTreeNode = null;
|
||||||
|
vm.SelectedUnstagedChange = null;
|
||||||
|
vm.SelectedUnstagedTreeNode = null;
|
||||||
vm.SetDetail(null, false);
|
vm.SetDetail(null, false);
|
||||||
|
|
||||||
base.OnUnloaded(e);
|
base.OnUnloaded(e);
|
||||||
|
|
Loading…
Reference in a new issue