Skip to content

Commit 0e9cf25

Browse files
authored
Settings changes
1 parent 91bfe78 commit 0e9cf25

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

apps/phoneremind/settings.js

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,28 @@
7070
E.showMenu({
7171
"" : { "title" : "Phone Reminder" },
7272
"< Back" : () => back(),
73-
'Precision Lvl': function(){
73+
'Check Delay': {
74+
value: 0|settings.timeDelay,
75+
min: 0, max: 600000,
76+
step:5000,
77+
onchange: v => {
78+
settings.timeDelay = v;
79+
writeSettings();
80+
},
81+
format : v => {
82+
return formatTime(v)
83+
}
84+
},
85+
'Precision Level': function(){
7486
showPrecisionMenu(showMainMenu);
7587

7688
// format: ... may be specified as a function which converts the value to a string
7789
// if the value is a boolean, showMenu() will convert this automatically, which
7890
// keeps settings menus consistent
7991
},
8092

93+
94+
8195
'Delete All Locations': function(){
8296
E.showPrompt("Are you sure you want to delete all familiar locations?", {title:"Confirm"})
8397
.then(function(v) {
@@ -90,19 +104,7 @@
90104
}
91105
});
92106

93-
},
94-
'Check Delay': {
95-
value: 0|settings.timeDelay,
96-
min: 0, max: 600000,
97-
step:5000,
98-
onchange: v => {
99-
settings.timeDelay = v;
100-
writeSettings();
101-
},
102-
format : v => {
103-
return formatTime(v)
104107
}
105-
}
106108
});
107109
}
108110
showMainMenu()

0 commit comments

Comments
 (0)