From a22f8f70d63a07a73a976a2e3ecab94015daa22b Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Mon, 29 Sep 2014 16:44:41 +0200 Subject: [PATCH] fixes for notification area --- shell/contents/views/Desktop.qml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/shell/contents/views/Desktop.qml b/shell/contents/views/Desktop.qml index 44134943..b5a0c516 100644 --- a/shell/contents/views/Desktop.qml +++ b/shell/contents/views/Desktop.qml @@ -44,8 +44,8 @@ Item { notificationsModel.remove(j); } } - pendingRemovals = []; } + pendingRemovals = []; } } @@ -94,7 +94,7 @@ Item { notificationsModel.insert(0, data); if (!data["isPersistent"]) { pendingRemovals.push(notificationId); -// pendingTimer.start(); + pendingTimer.start(); } } @@ -118,7 +118,6 @@ Item { } onNewData: { - var _data = data; // Temp copy to avoid lots of context switching var actions = new Array() if (data["actions"] && data["actions"].length % 2 == 0) { for (var i = 0; i < data["actions"].length; i += 2) { @@ -131,7 +130,7 @@ Item { homescreen.addNotification( sourceName, - _data, + data, actions); }