mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-28 22:53:09 +00:00
fixes for notification area
This commit is contained in:
parent
cdc16de1ea
commit
a22f8f70d6
1 changed files with 3 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue