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,19 +90,17 @@ exports.swipeOn = function(autohide) {
|
|||
|
||||
function queueDraw() {
|
||||
const o = exports.offset;
|
||||
Bangle.appRect.y = o+24;
|
||||
Bangle.appRect.h = 1 + Bangle.appRect.y2 - Bangle.appRect.y;
|
||||
if (o>-24) {
|
||||
Bangle.appRect.y = o+24;
|
||||
Bangle.appRect.h = 1 + Bangle.appRect.y2 - Bangle.appRect.y;
|
||||
if (o>-24) {
|
||||
Bangle.setLCDOverlay(og, 0, o, {
|
||||
id:"widget_utils",
|
||||
remove:()=>{
|
||||
require("widget_utils").cleanupOverlay();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
Bangle.setLCDOverlay(undefined, {id: "widget_utils"});
|
||||
}
|
||||
Bangle.setLCDOverlay(og, 0, o, {
|
||||
id:"widget_utils",
|
||||
remove:()=>{
|
||||
require("widget_utils").cleanupOverlay();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
Bangle.setLCDOverlay(undefined, {id: "widget_utils"});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue