From deb18b0ef5cc8138f17a00a356daa38f64fb67db Mon Sep 17 00:00:00 2001 From: KungPhoo Date: Tue, 29 Mar 2022 07:15:05 +0200 Subject: [PATCH] Update widget.js Reload the clock after the "connection lost" message was shown. --- apps/widbt/widget.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/widbt/widget.js b/apps/widbt/widget.js index 58b4d4b4a..5d752b575 100644 --- a/apps/widbt/widget.js +++ b/apps/widbt/widget.js @@ -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. }