Hide notification after it's no longer possible to accept pairing
This commit is contained in:
parent
6883d46cb4
commit
02f7e3f16e
1 changed files with 1 additions and 0 deletions
|
@ -60,6 +60,7 @@ public:
|
||||||
void askPairingConfirmation(Device* device) override
|
void askPairingConfirmation(Device* device) override
|
||||||
{
|
{
|
||||||
KNotification* notification = new KNotification(QStringLiteral("pairingRequest"), KNotification::NotificationFlag::Persistent);
|
KNotification* notification = new KNotification(QStringLiteral("pairingRequest"), KNotification::NotificationFlag::Persistent);
|
||||||
|
QTimer::singleShot(PairingHandler::pairingTimeoutMsec(), notification, &KNotification::close);
|
||||||
notification->setIconName(QStringLiteral("dialog-information"));
|
notification->setIconName(QStringLiteral("dialog-information"));
|
||||||
notification->setComponentName(QStringLiteral("kdeconnect"));
|
notification->setComponentName(QStringLiteral("kdeconnect"));
|
||||||
notification->setTitle(QStringLiteral("KDE Connect"));
|
notification->setTitle(QStringLiteral("KDE Connect"));
|
||||||
|
|
Loading…
Reference in a new issue