Skip to content

Commit

Permalink
Merge pull request #617 from RytoEX/master
Browse files Browse the repository at this point in the history
image-source: Reload file when timestamp has changed
  • Loading branch information
jp9000 committed Sep 17, 2016
2 parents 31f106c + c8a81bb commit 1946ee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/image-source/image-source.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 1946ee6

Please sign in to comment.