Skip to content

Commit b9ffb10

Browse files
committedMar 8, 2023
Start legend update immediately when render starts instead of when
it finishes Since the operation is now executed in a background thread, we may as well get it processing at the same time as the render occurs
1 parent 7e554b1 commit b9ffb10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4888,7 +4888,7 @@ void QgisApp::initLayerTreeView()
48884888
addDockWidget( Qt::LeftDockWidgetArea, mLayerOrderDock );
48894889
mLayerOrderDock->hide();
48904890

4891-
connect( mMapCanvas, &QgsMapCanvas::mapCanvasRefreshed, this, &QgisApp::updateFilterLegend );
4891+
connect( mMapCanvas, &QgsMapCanvas::renderStarting, this, &QgisApp::updateFilterLegend );
48924892
connect( mMapCanvas, &QgsMapCanvas::renderErrorOccurred, badLayerIndicatorProvider, &QgsLayerTreeViewBadLayerIndicatorProvider::reportLayerError );
48934893
connect( mMapCanvas, &QgsMapCanvas::renderErrorOccurred, mInfoBar, [this]( const QString & error, QgsMapLayer * layer )
48944894
{

0 commit comments

Comments
 (0)
Please sign in to comment.