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: v2.15.173~3 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=5e74e417e8b3d4e9773d0fad97cf11a5c4eeeccf;ds=sidebyside 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 (); + } } }