messagesoverlay - Fix linter warnings
parent
90a793b966
commit
89785c13f9
|
|
@ -10,3 +10,4 @@
|
||||||
Indicator for multiple messages in queue
|
Indicator for multiple messages in queue
|
||||||
Some optimization in the rendering code
|
Some optimization in the rendering code
|
||||||
Track handler changes done by background code
|
Track handler changes done by background code
|
||||||
|
0.08: Fix linter warnings
|
||||||
|
|
|
||||||
|
|
@ -517,7 +517,7 @@ const restoreHandlers = function(){
|
||||||
}
|
}
|
||||||
|
|
||||||
if (backup.watches){
|
if (backup.watches){
|
||||||
toRemove = [];
|
let toRemove = [];
|
||||||
|
|
||||||
origClearWatch.call(global);
|
origClearWatch.call(global);
|
||||||
|
|
||||||
|
|
@ -605,7 +605,6 @@ const cleanup = function(){
|
||||||
|
|
||||||
Bangle.setLCDOverlay();
|
Bangle.setLCDOverlay();
|
||||||
ovr = undefined;
|
ovr = undefined;
|
||||||
quiet = undefined;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const backup = {};
|
const backup = {};
|
||||||
|
|
@ -671,7 +670,7 @@ exports.message = function(type, event) {
|
||||||
if(event.messagesoverlayignore) return;
|
if(event.messagesoverlayignore) return;
|
||||||
|
|
||||||
let free = process.memory().free;
|
let free = process.memory().free;
|
||||||
bpp = settings.systemTheme ? 16 : 4;
|
let bpp = settings.systemTheme ? 16 : 4;
|
||||||
|
|
||||||
let estimatedMemUse = bpp == 16 ? 4096 : (bpp == 4 ? 1536 : 768);
|
let estimatedMemUse = bpp == 16 ? 4096 : (bpp == 4 ? 1536 : 768);
|
||||||
// reduce estimation if ovr already exists and uses memory;
|
// reduce estimation if ovr already exists and uses memory;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"id": "messagesoverlay",
|
"id": "messagesoverlay",
|
||||||
"name": "Messages Overlay",
|
"name": "Messages Overlay",
|
||||||
"version": "0.07",
|
"version": "0.08",
|
||||||
"description": "An overlay based implementation of a messages UI (display notifications from iOS and Gadgetbridge/Android)",
|
"description": "An overlay based implementation of a messages UI (display notifications from iOS and Gadgetbridge/Android)",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"type": "bootloader",
|
"type": "bootloader",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue