Skip to content

Commit

Permalink
Start legend update immediately when render starts instead of when
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nyalldawson committed Mar 8, 2023
1 parent 7e554b1 commit b9ffb10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -4888,7 +4888,7 @@ void QgisApp::initLayerTreeView()
addDockWidget( Qt::LeftDockWidgetArea, mLayerOrderDock );
mLayerOrderDock->hide();

connect( mMapCanvas, &QgsMapCanvas::mapCanvasRefreshed, this, &QgisApp::updateFilterLegend );
connect( mMapCanvas, &QgsMapCanvas::renderStarting, this, &QgisApp::updateFilterLegend );
connect( mMapCanvas, &QgsMapCanvas::renderErrorOccurred, badLayerIndicatorProvider, &QgsLayerTreeViewBadLayerIndicatorProvider::reportLayerError );
connect( mMapCanvas, &QgsMapCanvas::renderErrorOccurred, mInfoBar, [this]( const QString & error, QgsMapLayer * layer )
{
Expand Down

0 comments on commit b9ffb10

Please sign in to comment.