Added a g.reset()

master
pebl-hank 2022-11-15 20:06:51 +01:00
parent 5f2c649987
commit 386b63df2d
3 changed files with 4 additions and 3 deletions

View File

@ -13,3 +13,4 @@
0.14: Added configuration option 0.14: Added configuration option
0.15: Added option to hide widget when connected 0.15: Added option to hide widget when connected
0.16: Simplify code, add option to disable displaying a message 0.16: Simplify code, add option to disable displaying a message
0.17: Minor display fix

View File

@ -1,7 +1,7 @@
{ {
"id": "widbt_notify", "id": "widbt_notify",
"name": "Bluetooth Widget with Notification", "name": "Bluetooth Widget with Notification",
"version": "0.16", "version": "0.17",
"description": "Show the current Bluetooth connection status with some optional features: show message, buzz on connect/loss, hide always/if connected.", "description": "Show the current Bluetooth connection status with some optional features: show message, buzz on connect/loss, hide always/if connected.",
"icon": "widget.png", "icon": "widget.png",
"type": "widget", "type": "widget",

View File

@ -40,7 +40,7 @@
redrawCurrentApp: function() { redrawCurrentApp: function() {
if (typeof(draw) == 'function') { if (typeof(draw) == 'function') {
g.clear(); g.reset().clear();
draw(); draw();
Bangle.loadWidgets(); Bangle.loadWidgets();
Bangle.drawWidgets(); Bangle.drawWidgets();