From 0cd7a577a46d6c55f4ca80bcb18a1cb85259f6bf Mon Sep 17 00:00:00 2001 From: hughbarney Date: Sun, 12 Dec 2021 17:36:59 +0000 Subject: [PATCH] Rebble: ensure widget area is also cleared when we hide widgets --- apps/rebble/rebble.app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/rebble/rebble.app.js b/apps/rebble/rebble.app.js index 220d048c6..d186ea8ec 100644 --- a/apps/rebble/rebble.app.js +++ b/apps/rebble/rebble.app.js @@ -263,9 +263,10 @@ g.clear(); Bangle.loadWidgets(); /* * we are not drawing the widgets as we are taking over the whole screen - * so we will blank out the draw() functions of each widget + * so we will blank out the draw() functions of each widget and change the + * area to the top bar doesn't get cleared. */ -for (let wd of WIDGETS) {wd.draw=()=>{};} +for (let wd of WIDGETS) {wd.draw=()=>{};wd.area="";} loadSettings(); loadLocation(); draw(); // queues the next draw for a minutes time