Skip to content

Commit 7e76962

Browse files
committed
Fixed power off with prompt disabled.
1 parent 042b288 commit 7e76962

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/poweroff/app.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ if (showPrompt) {
2828
});
2929
} else {
3030
E.showMessage("Powering off...");
31+
32+
setTimeout(function() {
33+
if (Bangle.softOff) Bangle.softOff(); else Bangle.off();
34+
}, 1000);
3135
}
3236

3337
Bangle.loadWidgets();

0 commit comments

Comments
 (0)