Wish Ask before deleting a file or replacing it

antonomase

Active Member
Licensed User
Longtime User
Hi,

I work with several layouts which are all on the same model. The title bar of these layouts contains an icon.
To generate a new layout before adapting it, I make a save as... in the designer. I add the new icon file, I assign it to the imageview and then I remove the old icon file which is not used in this layout.
... and the file is deleted : I have to reload it manually in the Files dir.

In the same way, I use the Android icons which have the same name in different sizes. I used a large icon in my main layout. When writing the help, I used a smaller icon but the file have the same name. And the large icon file has been replaced by the small icon file.

So my wishes :
when the user remove a file from the designer, is it possible to ask him if he wants to delete the file in the Files directory
whan a user add a file from the designer and a file with the same name exists, is it possible to ask him if he want to replace the old file.

Thanks
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
You should see this dialog when you remove an image or file:
SS-2013-11-13_15.05.51.png
 

antonomase

Active Member
Licensed User
Longtime User
Oups.
It was not clear for me that 'Files' folder was the folder on the disk.
For me, it was the panel in the IDE.
 
Top