CushyStudio icon indicating copy to clipboard operation
CushyStudio copied to clipboard

Fix import importing twice

Open birdddev opened this issue 11 months ago • 3 comments

Also removes the <TargetBox> from the Import dock. TargetBox is completely un-used now.

birdddev avatar Feb 29 '24 03:02 birdddev

Can we still import import workflows or images by drag and dropping anything anywhere in the app ? I thought it would be cool if we had a global drop handler on the whole app itself

rvion avatar Feb 29 '24 04:02 rvion

You already have it going to the document.body as well useGlobalDropHook, which is the one that actually handles all of the file types, TargetBox only did images, not urls it looked like. It was good you mentioned you set up the url dragging, because I initially commented out useGlobalDropHook first and then tested it and it only worked for files.

birdddev avatar Feb 29 '24 05:02 birdddev

This broke dragging images from inside cushy though. May just have to move the useGlobal stuff to TargetBox, I'll look in to it later :pensive:

birdddev avatar Feb 29 '24 10:02 birdddev