Problem with "Display"(or Pointers location) of imported items if you have more than 1 project open.
Hello,
I unfortunately don't have a step by step ready to use process to reproduce, but this one is pretty easy to reproduce, I can give a brief description and leave out there, it that can help one day,
if you have 2 projects open for example, then have 2 variables containing each a Project item, then perform an import files on them,
All the filles will DISPLAY only inside the currently viewed project by the user.
So if you are in project 2 (currently viewed by user), and you perform the insert files for project1 with its variable, all the items show up on project2, if you perform the insert for both projects, ALL items from both projects ONLY SHOW UP on the currently viewed project.
So the problem is next time you open the projects that was not viewed (project 1 here), it will have NO ITEM from the ones you performed the import on. (meanining that proj1-> import files function did not fail, YET there is no item inside proj1)
If you drag an item from project 2 (the one that received all the items despite telling the api to put them in different proejtcs) to project 1 (the one that got no item), then it will add that item to its list.
So another problem is that the "app.project.rootItem.children" becomes unusable, and unreliable. You can only trust the list of items you get from the currently viewed project. Because any time you add a new item to another (non viewed currently by the user) project, it will be added and disturb the list, whereas the list stays fix if you have imported the files once and you are working with one single project.
So next time you want to use a reliable list from "app.project.rootItem.children", for a specific project, you would always need to go check the "other" project that "received" all the items you imported...
Maybe that's a hardcoded choice, letting users import items on projects that are currently viewing, and that made it that there was oversight on use cases when the user is using api and want to import ONLY to a project, that is not currently viewed (despite it being open of course).
