Mercurial > hg > svgui
changeset 1457:160e6d010141 single-point
Avoid showing progress bars for dormant layers. They'll typically be duplicates, e.g. in the vect app you can get many dormant layers all reporting the alignment completion at the same time. (Maybe it would be better just to reject progress bars for alignment in dormant layers? Hm)
author | Chris Cannam |
---|---|
date | Thu, 16 May 2019 15:50:02 +0100 |
parents | 98157ea8a3d2 |
children | 009f22e03bf6 |
files | view/View.cpp |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/view/View.cpp Fri May 10 15:50:51 2019 +0100 +++ b/view/View.cpp Thu May 16 15:50:02 2019 +0100 @@ -1757,6 +1757,16 @@ if (i->first == object) { found = true; + + if (i->first->isLayerDormant(this)) { + // A dormant (invisible) layer can still be busy + // generating, but we don't usually want to indicate + // it because it probably means it's a duplicate of a + // visible layer + cancel->hide(); + pb->hide(); + continue; + } // The timer is used to test for stalls. If the progress // bar does not get updated for some length of time, the