Browse Source

Make Tile pos' selector use up to date image files (#135)

Leonardo Jeanteur 4 years ago
parent
commit
8fb75d7cea
1 changed files with 2 additions and 1 deletions
  1. 2 1
      hide/comp/TileSelector.hx

+ 2 - 1
hide/comp/TileSelector.hx

@@ -113,7 +113,8 @@ class TileSelector extends Component {
 		if( tool.element.children().length == 0 )
 			tool.remove();
 
-		var url = "file://" + ide.getPath(file);
+		var timestamp = Std.int(Date.now().getTime() / 1000);
+		var url = "file://" + ide.getPath(file) + "?t=" + timestamp;
 		var scroll = new Element("<div class='flex-scroll'><div class='scroll'>").appendTo(element).find(".scroll");
 		image = new Element('<div class="tile" style="background-image:url(\'$url\')"></div>').appendTo(scroll);