Skip to content

Commit 878f26d

Browse files
committed
settings 0.82: Fix Quiet Mode menu (could previously scroll up and have it show 'undefined')
1 parent b9141d8 commit 878f26d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

apps/setting/ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,4 @@ of 'Select Clock'
9191
0.80: Add option to set LCD brightness to 0, keep default brightness at 1.
9292
0.81: Ensure 'Privacy' (address randomnisation) is only added for Bangle.js 2,
9393
and add warnings in documentation that it can cause connection issues
94+
0.82: Fix Quiet Mode menu (could previously scroll up and have it show 'undefined')

apps/setting/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "setting",
33
"name": "Settings",
4-
"version": "0.81",
4+
"version": "0.82",
55
"description": "A menu for setting up Bangle.js",
66
"icon": "settings.png",
77
"tags": "tool,system",

apps/setting/settings.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,9 @@ function alertsMenu() {
172172
}
173173
},
174174
/*LANG*/"Quiet Mode": {
175-
value: settings.quiet|0,
176-
format: v => [/*LANG*/"Off", /*LANG*/"Alarms", /*LANG*/"Silent"][v%3],
175+
value: (settings.quiet|0)%3,
176+
min:0, max:2,
177+
format: v => [/*LANG*/"Off", /*LANG*/"Alarms", /*LANG*/"Silent"][v],
177178
onchange: v => {
178179
settings.quiet = v%3;
179180
updateSettings();

0 commit comments

Comments
 (0)