Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Image file cache refresh

When assigning an image from a file it appears to be cached.

 

Because if the file is replaced and the image reassigned it picks up the old image from the file not the new one.

 

Is there a way to refresh things so that it picks up the new image?

 

Example:

 

let file = "file1,png";

myImage.image = file;

 

delete file

add new file with same name

 

myImage.image = file;

 

The original file is still displayed.

 

Author | ch, passion for improvement.

Best Answer
0 Votes
3 REPLIES 3

The only way I've found is to use a different filename.You can have two, and alternate. Or just append a timestamp or something.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

@Gondwana- thanks, but simply restarting the app works fine.

 

Was really looking for something a little more elegant, like no caching or refresh or redraw.

Author | ch, passion for improvement.

Best Answer
0 Votes

Sorry; I only do kludges. 😉

Peter McLennan
Gondwana Software
Best Answer