Skip to content

Commit

Permalink
Fix observed bug: could not drag/drop from CD or DVD!
Browse files Browse the repository at this point in the history
  • Loading branch information
fire-eggs committed Jun 17, 2019
1 parent 9d0228c commit a4dc129
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/ImageGlass/frmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,10 @@ private void picMain_DragOver(object sender, DragEventArgs e)

string filePath = ((string[])dataTest)[0];

// KBR 20190617 Fix observed issue: dragging from CD/DVD would fail because we set the
// drag effect to Move, which is _not_allowed_
// Drag file from DESKTOP to APP
if (GlobalSetting.ImageList.IndexOf(filePath) == -1)
if (GlobalSetting.ImageList.IndexOf(filePath) == -1 && e.AllowedEffect != DragDropEffects.Copy)
{
e.Effect = DragDropEffects.Move;
}
Expand Down

0 comments on commit a4dc129

Please sign in to comment.