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