mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-15 00:37:11 +00:00
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:
parent
794dd3739a
commit
9d9294ca7c
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue