Skip to content

Commit

Permalink
Fix widget_utils breakage which caused the widget bar used with swipe…
Browse files Browse the repository at this point in the history
…On to literally never be hidden. Was

introduced as part of #3417 (comment)
  • Loading branch information
gfwilliams committed Aug 5, 2024
1 parent 4b50cd6 commit 9984914
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions modules/widget_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"});
}
}

Expand Down

0 comments on commit 9984914

Please sign in to comment.