mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-23 18:30:34 +08:00
optimize<WorkingCopy>: clear selection after WorkingCopy unloaded
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user