mirror of https://github.com/espruino/BangleApps
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-2120204969pull/3532/head
parent
4b50cd61aa
commit
9984914a91
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue