Commit 8d521540 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Mark notifications as resident

This means that they are not deleted automatically on timeout and thus can be interacted with from Plasma's history.

The KNotification is parented to the Notification so it gets deleted when the notification is dismissed from the phone or the Plasmoid.
parent 81daf664
Pipeline #54876 passed with stage
in 5 minutes and 49 seconds
......@@ -92,6 +92,7 @@ void Notification::createKNotification(const NetworkPacket& np)
if (!m_notification) {
m_notification = new KNotification(QStringLiteral("notification"), KNotification::CloseOnTimeout, this);
m_notification->setComponentName(QStringLiteral("kdeconnect"));
m_notification->setHint(QStringLiteral("resident"), true); // This means the notification won't be deleted automatically, but only with KNotifications 5.81
}
QString escapedTitle = m_title.toHtmlEscaped();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment