Skip to content

Commit

Permalink
Drop minimum task time to 5 second before showing a system notification
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 8, 2018
1 parent 8c6068a commit a2a5669
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/qgis_global_settings.ini
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -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 )
{
Expand Down

0 comments on commit a2a5669

Please sign in to comment.