mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-03 02:04:45 +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);
|
notificationsModel.remove(j);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pendingRemovals = [];
|
|
||||||
}
|
}
|
||||||
|
pendingRemovals = [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -94,7 +94,7 @@ Item {
|
||||||
notificationsModel.insert(0, data);
|
notificationsModel.insert(0, data);
|
||||||
if (!data["isPersistent"]) {
|
if (!data["isPersistent"]) {
|
||||||
pendingRemovals.push(notificationId);
|
pendingRemovals.push(notificationId);
|
||||||
// pendingTimer.start();
|
pendingTimer.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -118,7 +118,6 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
onNewData: {
|
onNewData: {
|
||||||
var _data = data; // Temp copy to avoid lots of context switching
|
|
||||||
var actions = new Array()
|
var actions = new Array()
|
||||||
if (data["actions"] && data["actions"].length % 2 == 0) {
|
if (data["actions"] && data["actions"].length % 2 == 0) {
|
||||||
for (var i = 0; i < data["actions"].length; i += 2) {
|
for (var i = 0; i < data["actions"].length; i += 2) {
|
||||||
|
|
@ -131,7 +130,7 @@ Item {
|
||||||
|
|
||||||
homescreen.addNotification(
|
homescreen.addNotification(
|
||||||
sourceName,
|
sourceName,
|
||||||
_data,
|
data,
|
||||||
actions);
|
actions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue