Merge pull request #3356 from halemmerich/messagesoverlay

messagesoverlay - Fix linter warnings
pull/3358/head
thyttan 2024-04-13 23:46:13 +02:00 committed by GitHub
commit 68c58ceadf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -10,3 +10,4 @@
Indicator for multiple messages in queue
Some optimization in the rendering code
Track handler changes done by background code
0.08: Fix linter warnings

View File

@ -517,7 +517,7 @@ const restoreHandlers = function(){
}
if (backup.watches){
toRemove = [];
let toRemove = [];
origClearWatch.call(global);
@ -605,7 +605,6 @@ const cleanup = function(){
Bangle.setLCDOverlay();
ovr = undefined;
quiet = undefined;
};
const backup = {};
@ -671,7 +670,7 @@ exports.message = function(type, event) {
if(event.messagesoverlayignore) return;
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);
// reduce estimation if ovr already exists and uses memory;

View File

@ -1,7 +1,7 @@
{
"id": "messagesoverlay",
"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)",
"icon": "app.png",
"type": "bootloader",