浏览代码

Merge pull request #617 from RytoEX/master

image-source: Reload file when timestamp has changed
Jim 9 年之前
父节点
当前提交
1946ee6443
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/image-source/image-source.c

+ 1 - 1
plugins/image-source/image-source.c

@@ -207,7 +207,7 @@ static void image_source_tick(void *data, float seconds)
 		time_t t = get_modified_timestamp(context->file);
 		context->update_time_elapsed = 0.0f;
 
-		if (context->file_timestamp < t) {
+		if (context->file_timestamp != t) {
 			image_source_load(context);
 		}
 	}