From: Carl Hetherington Date: Thu, 4 Nov 2021 22:44:11 +0000 (+0100) Subject: Pulse the progress bar 'automatically' if we haven't had a progress update for a... X-Git-Tag: checked-for-v2.16.x~185 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=6c429da71c7bbb3045b57e11a7040126915b6a62 Pulse the progress bar 'automatically' if we haven't had a progress update for a while. Should help with #2119. --- diff --git a/src/wx/job_view.cc b/src/wx/job_view.cc index 231176e4f..776201424 100644 --- a/src/wx/job_view.cc +++ b/src/wx/job_view.cc @@ -103,8 +103,11 @@ JobView::setup () void JobView::maybe_pulse () { - if (_gauge && _job->running() && !_job->progress()) { - _gauge->Pulse (); + if (_gauge && _job->running()) { + auto elapsed = _job->seconds_since_last_progress_update(); + if (!_job->progress() || !elapsed || *elapsed > 2) { + _gauge->Pulse (); + } } }