[widalarmeta] tweak to if statement

Co-authored-by: Rob Pilling <robpilling@gmail.com>
master
Logan B 2025-08-06 10:18:38 -05:00 committed by GitHub
parent ceeac6cbb3
commit d31c6ca12a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -57,7 +57,8 @@
let drawSeconds = false;
// If always showing, or the clock is visible
if (config.whenToShow === 0 || Bangle.CLOCK) {
if (config.whenToShow === 1 && !Bangle.CLOCK)
return;
// Determine text and width
if (next > 0 && next <= config.maxhours*60*60*1000) {
const hours = Math.floor((next-1) / 3600000).toString();