PNG and JPG images not recognized for drag and drop
I organize for my book and can only add an image with an image card, which is a much slower process for me, I have to find my image and then add each one via the image card option. I used to be able to drag and drop images in, but it doesn't let me do that anymore for any image type.
This should still work, as far as I know - are you using Wayland + Linux, by chance?
Hi sorry for the late reply, I'm using windows on steam. I've tried again to use it. I notice that I run it by the EXE rather than from steam, does DRM have something to do with it? Knowing that it works for you tells me I have some testing to do, maybe admin priviledges, im unsure. Im on windows 10 and pretty sure I have access to everything. My steam is installed outside of my x86 because of modding my games. I'll try and do some testing real quick and get back to you here.
Did some testing here. My secondary D Drive has a custom installation directory with steam, I have another directory on my E drive as well. I wanted to see the JPG would be able to be dragged and dropped when the file is in the same install directory as the program, and copied the img into MasterPlans own asset directory. I dragged and dropped without administrative privileges run on the EXE and the file type isn't recognized. I ran the admin privileges and it doesnt even allow me to drag and drop the img from the masterplan asset directory either. My book is largely in MasterPlan and if this is some kind of bug that could affect plans, I could lose a lot of data and that would be devastating, otherwise I would attempt a kind of integrity scan and total reinstall of the application. I am sorry that you are unable to replicate the issue,
I do not know why my plans made in ver .7 (about when I started using the software) were able to properly import drag and drop images from any directory (C,D, E ,F drives) without complication but the 0.9 does not seem to recognize the file formats of png, gif or jpg on my system. I do also notice that newer projects I made with fresh files are having the same issue, so it is not that ive been using iterations of files from 0.7.
Any ideas you might have that I might have overlooked would be appreciated.
Change line 366 of events.go from case sdl.EVENT_DROP_COMPLETE: to case sdl.EVENT_DROP_FILE:
I guess thats a loose file, would I be able to download the events.go, make changes in txt, and then the exe will recognize it as long as its in the asset directory? I'm unsure how to implement the change myself. But it sounds like a possible solution I'd try to verify with you.
--> https://github.com/SolarLune/masterplan/blob/3369c5b5ec1e5cd765e10e9a86af5ebf7e4f1e76/events.go#L366C1-L366C32 <--
You have to change this line in this file and then recompile. That's it. There's nothing else that you have to do. Can't make it simpler I'm afraid.
@SolarLune I posted the solution to this 3 days ago, and posted it in your discord server 3 days ago. C'mon man, do the thing, update the repo.
Sorry for the late reply on my end as well!
I've been sick, and then very busy over the past week or so - my free time was not in abundance.
Thanks for the suggestion for the fix, @deviandice, as well as your patience, @FashFlamingo.
I made the fix, but haven't pushed it to the repo yet. That should be among the next things I push, though.