Skip to content

Commit a2a5669

Browse files
committed
Drop minimum task time to 5 second before showing a system notification
1 parent 8c6068a commit a2a5669

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

resources/qgis_global_settings.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ connections-xyz\OpenStreetMap\zmin=0
3232

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

3737
[core]
3838
# Whether or not to anonymize newly created projects

src/app/qgisapp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12925,7 +12925,7 @@ void QgisApp::newProfile()
1292512925

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

1293012930
if ( status == QgsTask::Complete )
1293112931
{

0 commit comments

Comments
 (0)