mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 21:24:59 +00:00
optimize<Welcome>: allow drop on welcome page
This commit is contained in:
parent
18e8036e11
commit
bdd147f737
2 changed files with 3 additions and 30 deletions
|
@ -194,26 +194,9 @@ namespace SourceGit.Views.Widgets {
|
|||
private void OnSearchFilterChanged(object sender, TextChangedEventArgs e) {
|
||||
UpdateVisibles();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region DRAG_DROP
|
||||
private void OnPageDragEnter(object sender, DragEventArgs e) {
|
||||
if (e.Data.GetDataPresent(DataFormats.FileDrop)) {
|
||||
dropArea.Visibility = Visibility.Visible;
|
||||
}
|
||||
}
|
||||
|
||||
private void OnPageDragLeave(object sender, DragEventArgs e) {
|
||||
dropArea.Visibility = Visibility.Hidden;
|
||||
}
|
||||
|
||||
private void OnPageDrop(object sender, DragEventArgs e) {
|
||||
dropArea.Visibility = Visibility.Hidden;
|
||||
}
|
||||
|
||||
private void OnDropFolder(object sender, DragEventArgs e) {
|
||||
bool rebuild = false;
|
||||
dropArea.Visibility = Visibility.Hidden;
|
||||
|
||||
if (e.Data.GetDataPresent(DataFormats.FileDrop)) {
|
||||
if (!MakeSureReady()) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue