Use same dragdrop method for tabs

Boxes used a more flexible variant that allowed for drag&drop from
browser downloads (chrome).
This commit is contained in:
Kaphotics 2016-08-11 20:02:13 -07:00
parent 794dd3739a
commit 9d9294ca7c

View file

@ -2421,7 +2421,10 @@ namespace PKHeX
// Drag & Drop Events
private void tabMain_DragEnter(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent(DataFormats.FileDrop)) e.Effect = DragDropEffects.Move;
if (e.AllowedEffect == (DragDropEffects.Copy | DragDropEffects.Link)) // external file
e.Effect = DragDropEffects.Copy;
else if (e.Data != null) // within
e.Effect = DragDropEffects.Move;
}
private void tabMain_DragDrop(object sender, DragEventArgs e)
{