Skip to content
Permalink
Browse files

Drop minimum task time to 5 second before showing a system notification

  • Loading branch information
nyalldawson committed Aug 8, 2018
1 parent 8c6068a commit a2a56696b0904943da8eab42c279cfcb77bc2b83
Showing with 2 additions and 2 deletions.
  1. +1 −1 resources/qgis_global_settings.ini
  2. +1 −1 src/app/qgisapp.cpp
@@ -32,7 +32,7 @@ connections-xyz\OpenStreetMap\zmin=0

# Minimum time (in seconds) for a background task to execute in order for a system
# notification to be shown when the task completes.
minTaskLengthForSystemNotification=10
minTaskLengthForSystemNotification=5

[core]
# Whether or not to anonymize newly created projects
@@ -12925,7 +12925,7 @@ void QgisApp::newProfile()

void QgisApp::onTaskCompleteShowNotify( long taskId, int status )
{
long long minTime = QgsSettings().value( QStringLiteral( "minTaskLengthForSystemNotification" ), 10, QgsSettings::App ).toLongLong() * 1000;
long long minTime = QgsSettings().value( QStringLiteral( "minTaskLengthForSystemNotification" ), 5, QgsSettings::App ).toLongLong() * 1000;

if ( status == QgsTask::Complete )
{

0 comments on commit a2a5669

Please sign in to comment.
You can’t perform that action at this time.