widhid: initial display based on NRF.connected

pull/2734/head
Rob Pilling 2023-05-08 21:53:20 +01:00
parent a2e9c8db1e
commit 610f4d61a7
2 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@
? require("heatshrink").decompress(atob("jEYxH+AEfH44XXAAYXXDKIXZDYp3pC/6KHUMwWHC/4XvUy4YGdqoA/AFoA=="))
: require("heatshrink").decompress(atob("jEYxH+AEcdjoXXAAYXXDKIXZDYp3pC/6KHUMwWHC/4XvUy4YGdqoA/AFoA==")), this.x + 2, this.y + 2);
},
width: 24,
width: NRF.getSecurityStatus().connected ? 24 : 0,
};
var redraw = function () { return setTimeout(Bangle.drawWidgets, 50); };
NRF.on("connect", function () {

View File

@ -109,7 +109,7 @@
this.y! + 2
);
},
width: 24,
width: NRF.getSecurityStatus().connected ? 24 : 0,
};
const redraw = () => setTimeout(Bangle.drawWidgets, 50);