mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
style<Welcome>: unselect all when dragdrop tree node
This commit is contained in:
parent
d6d4482a4e
commit
acec7e857b
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue