obs-text: Reload whenever file timestamp has changed

Rather than reload when the timestamp is greater than the previous
timestamp, reload whenever the timestamp has changed.
master
jp9000 2016-09-16 19:47:24 -07:00
parent 1946ee6443
commit b2a85a2820
1 changed files with 1 additions and 1 deletions

View File

@ -736,7 +736,7 @@ inline void TextSource::Tick(float seconds)
time_t t = get_modified_timestamp(file.c_str());
update_time_elapsed = 0.0f;
if (file_timestamp < t) {
if (file_timestamp != t) {
LoadFileText();
RenderText();
file_timestamp = t;