style<Welcome>: unselect all when dragdrop tree node

This commit is contained in:
leo 2021-08-06 20:08:55 +08:00
parent d6d4482a4e
commit acec7e857b

View file

@ -194,6 +194,8 @@ namespace SourceGit.Views.Widgets {
var item = tree.FindItem(e.OriginalSource as DependencyObject); var item = tree.FindItem(e.OriginalSource as DependencyObject);
if (item == null) return; if (item == null) return;
tree.UnselectAll();
var adorner = new Controls.DragDropAdorner(item); var adorner = new Controls.DragDropAdorner(item);
DragDrop.DoDragDrop(item, item.DataContext, DragDropEffects.Move); DragDrop.DoDragDrop(item, item.DataContext, DragDropEffects.Move);
adorner.Remove(); adorner.Remove();