forked from FOSS/BangleApps
Update widget.js
parent
8df137b21d
commit
9c86c48398
|
@ -20,7 +20,7 @@ WIDGETS.bluetooth_notify = {
|
||||||
Bangle.buzz(700, 1); // buzz on connection loss
|
Bangle.buzz(700, 1); // buzz on connection loss
|
||||||
|
|
||||||
E.showMessage(/*LANG*/'Connection\nlost.', 'Bluetooth');
|
E.showMessage(/*LANG*/'Connection\nlost.', 'Bluetooth');
|
||||||
setInterval(()=>{load();}, 3000); // clear message
|
// setInterval(()=>{load();}, 3000); // clear message - this will reload the widget, resetting 'warningEnabled'.
|
||||||
|
|
||||||
WIDGETS.bluetooth_notify.warningEnabled = 0;
|
WIDGETS.bluetooth_notify.warningEnabled = 0;
|
||||||
setTimeout('WIDGETS.bluetooth_notify.warningEnabled = 1;', 30000); // re-notify only after 30 seconds.
|
setTimeout('WIDGETS.bluetooth_notify.warningEnabled = 1;', 30000); // re-notify only after 30 seconds.
|
||||||
|
|
Loading…
Reference in New Issue