Fix incorrect desktop file returned by mpris2

This commit is contained in:
Jonas Kvinge
2019-04-19 10:35:15 +02:00
parent d2fc5a6228
commit 844c4a28f4
3 changed files with 54 additions and 14 deletions

View File

@@ -139,6 +139,8 @@ void OSD::ShowMessageNative(const QString &summary, const QString &message, cons
hints["image_data"] = QVariant(image);
}
hints["transient"] = QVariant(true);
int id = 0;
if (last_notification_time_.secsTo(QDateTime::currentDateTime()) * 1000 < timeout_msec_) {
// Reuse the existing popup if it's still open. The reason we don't always