Revert "Update widget.js"

This reverts commit deb18b0ef5.
pull/1634/head
KungPhoo 2022-03-30 07:20:11 +02:00
parent a59579476b
commit 3986899c8b
1 changed files with 1 additions and 4 deletions

View File

@ -18,10 +18,7 @@ WIDGETS.bluetooth = {
disconnect: function() {
if(WIDGETS.bluetooth.warningEnabled == 1){
Bangle.buzz(700, 1); // buzz on connection loss
E.showMessage(/*LANG*/"Connection\nlost.","Bluetooth");
setInterval(()=>{load();}, 3000); // clear message
E.showMessage("Connection\nlost.","Bluetooth");
WIDGETS.bluetooth.warningEnabled = 0;
setTimeout('WIDGETS.bluetooth.warningEnabled = 1;', 30000); // re-notify only after 30 seconds.
}