kdeui: delay the automatic deletion of non-persistent notifications by 500ms

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-08-26 20:41:03 +03:00
parent 856b853b89
commit 288d07c31d

View file

@ -362,7 +362,7 @@ void KNotification::send()
const bool persistent = (flags() & KNotification::Persistent);
kNotificationManager->send(this, persistent);
if (!persistent) {
close();
QTimer::singleShot(500, this, SLOT(close()));
}
}