0.11: Fix regression that caused no notifications and corrupted background

master
Gordon Williams 2021-09-28 10:09:13 +01:00
parent 688a77efa2
commit d1d55ad1cf
3 changed files with 3 additions and 3 deletions

View File

@ -94,7 +94,7 @@
"name": "Notifications (default)", "name": "Notifications (default)",
"shortName":"Notifications", "shortName":"Notifications",
"icon": "notify.png", "icon": "notify.png",
"version":"0.10", "version":"0.11",
"description": "A handler for displaying notifications that displays them in a bar at the top of the screen", "description": "A handler for displaying notifications that displays them in a bar at the top of the screen",
"tags": "widget", "tags": "widget",
"type": "notify", "type": "notify",

View File

@ -7,3 +7,4 @@
0.08: Don't turn on screen during Quiet Mode 0.08: Don't turn on screen during Quiet Mode
0.09: Add onHide callback 0.09: Add onHide callback
0.10: Improvements to help notifications work with themes 0.10: Improvements to help notifications work with themes
0.11: Fix regression that caused no notifications and corrupted background

View File

@ -94,9 +94,8 @@ exports.show = function(options) {
y = 320-size, y = 320-size,
h = size, h = size,
b = y+h-1, r = x+w-1; // bottom,right b = y+h-1, r = x+w-1; // bottom,right
g.setClipRect(x,y, r,b);
// clear area // clear area
g.reset(); g.reset().setClipRect(x,y, r,b);
if (options.bgColor!==undefined) g.setColor(options.bgColor); if (options.bgColor!==undefined) g.setColor(options.bgColor);
g.clearRect(x,y, r,b); g.clearRect(x,y, r,b);
// bottom border // bottom border