mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Merge pull request #5649 from rouault/settings_main_canvas_preview_jobs
Add a setting to be able to disable preview jobs in main canvas
This commit is contained in:
commit
48c320beb0
@ -717,7 +717,13 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
|
||||
connect( mMapCanvas, &QgsMapCanvas::messageEmitted, this, &QgisApp::displayMessage );
|
||||
mMapCanvas->setWhatsThis( tr( "Map canvas. This is where raster and vector "
|
||||
"layers are displayed when added to the map" ) );
|
||||
mMapCanvas->setPreviewJobsEnabled( true );
|
||||
|
||||
if ( settings.value( QStringLiteral( "qgis/main_canvas_preview_jobs" ) ).isNull() )
|
||||
{
|
||||
// So that it appears in advanced settings
|
||||
settings.setValue( QStringLiteral( "qgis/main_canvas_preview_jobs" ), true );
|
||||
}
|
||||
mMapCanvas->setPreviewJobsEnabled( settings.value( QStringLiteral( "qgis/main_canvas_preview_jobs" ), true ).toBool() );
|
||||
|
||||
// set canvas color right away
|
||||
int myRed = settings.value( QStringLiteral( "qgis/default_canvas_color_red" ), 255 ).toInt();
|
||||
|
Loading…
x
Reference in New Issue
Block a user