Update widget.js
Reload the clock after the "connection lost" message was shown.master
parent
284da20f01
commit
deb18b0ef5
|
|
@ -18,7 +18,10 @@ WIDGETS.bluetooth = {
|
|||
disconnect: function() {
|
||||
if(WIDGETS.bluetooth.warningEnabled == 1){
|
||||
Bangle.buzz(700, 1); // buzz on connection loss
|
||||
E.showMessage("Connection\nlost.","Bluetooth");
|
||||
|
||||
E.showMessage(/*LANG*/"Connection\nlost.","Bluetooth");
|
||||
setInterval(()=>{load();}, 3000); // clear message
|
||||
|
||||
WIDGETS.bluetooth.warningEnabled = 0;
|
||||
setTimeout('WIDGETS.bluetooth.warningEnabled = 1;', 30000); // re-notify only after 30 seconds.
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue