diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-11-04 23:44:11 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-11-13 22:54:05 +0100 |
| commit | 5e74e417e8b3d4e9773d0fad97cf11a5c4eeeccf (patch) | |
| tree | 47d973c76d2ff1884e7a7f54f1791df04c86e70e /src | |
| parent | 5723d8d8518ad1cc0fef8bcc34a47671ab959fb3 (diff) | |
Pulse the progress bar 'automatically' if we haven't had a progress update for a while.
Should help with #2119.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/job_view.cc | 7 |
1 files 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 (); + } } } |
