Option to Automatically copy new images when creating a new .xojo_image file

https://tracker.xojo.com/xojoinc/xojo/-/issues/74325

When we are creating new xojo_image files dragging and dropping images into the navigator, the dropped image file is left in the original folder. While this is great if we have a lot of icons that we don’t need to track via version control, it can become an issue if the project pulls images from a central location on a master system, is checked into the VCS, and then checked out on a system that doesn’t have access to the original image location. The current solution is to collect the project items, but this creates further issues since you must:

  • Collect the items
  • Save the project to a new location, losing the VCS info
  • Copy the newly saved items back into the original VCS-controlled folder structure
  • Add new items to the VCS project
  • Check in the project - which results in EVERY item being marked as updated

It would be very helpful if we could set a flag in the IDE so that the images assigned to any new xojo_image file are automatically copied into the Pictures folder in the project. This would result in only the newly added items needing to be added to the VCS and the checkin would only contain the new items, leaving the update status of existing project items unchanged.

In my experience, File > Collect Project Items pulls the items into the VCS location. Did this change? I’m wondering why you have to save in a new location.

Yep - it changed. You now must save to a new folder.

Wow, I’ve just tried it in 2022r2 and see what you mean. I had not noticed. I appreciate that you’ve called this out!

Yes, this did change. I said that the new option should be a different one as the previous one made more sense for version control (just pulling images to an images folder) but it was already changed and the old behavior is not yet added back as a new option (I guess it will not return).

I don’t have the case at hand.