Fix widget_utils breakage which caused the widget bar used with swipeOn to literally never be hidden. Was

introduced as part of https://github.com/espruino/BangleApps/issues/3417#issuecomment-2120204969
pull/3532/head
Gordon Williams 2024-08-05 10:45:41 +01:00
parent 4b50cd61aa
commit 9984914a91
1 changed files with 10 additions and 12 deletions

View File

@ -90,7 +90,6 @@ exports.swipeOn = function(autohide) {
function queueDraw() {
const o = exports.offset;
if (o>-24) {
Bangle.appRect.y = o+24;
Bangle.appRect.h = 1 + Bangle.appRect.y2 - Bangle.appRect.y;
if (o>-24) {
@ -104,7 +103,6 @@ exports.swipeOn = function(autohide) {
Bangle.setLCDOverlay(undefined, {id: "widget_utils"});
}
}
}
for (var w of global.WIDGETS) if (!w._draw) { // already hidden
w._draw = w.draw;