Skip to content

Commit d31c6ca

Browse files
[widalarmeta] tweak to if statement
Co-authored-by: Rob Pilling <robpilling@gmail.com>
1 parent ceeac6c commit d31c6ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/widalarmeta/widget.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@
5757
let drawSeconds = false;
5858

5959
// If always showing, or the clock is visible
60-
if (config.whenToShow === 0 || Bangle.CLOCK) {
60+
if (config.whenToShow === 1 && !Bangle.CLOCK)
61+
return;
6162
// Determine text and width
6263
if (next > 0 && next <= config.maxhours*60*60*1000) {
6364
const hours = Math.floor((next-1) / 3600000).toString();

0 commit comments

Comments
 (0)