From 5e74e417e8b3d4e9773d0fad97cf11a5c4eeeccf Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 4 Nov 2021 23:44:11 +0100 Subject: [PATCH] Pulse the progress bar 'automatically' if we haven't had a progress update for a while. Should help with #2119. --- src/wx/job_view.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 (); + } } } -- 2.30.2