forked from espruino/BangleApps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.js
More file actions
32 lines (32 loc) · 784 Bytes
/
settings.js
File metadata and controls
32 lines (32 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
(function(back) {
var settings = require("Storage").readJSON("ios.settings.json",1)||{};
function updateSettings() {
require("Storage").writeJSON("ios.settings.json", settings);
}
var mainmenu = {
"" : { "title" : "iOS" },
"< Back" : back,
/*LANG*/"Time Sync" : {
value : !!settings.timeSync,
onchange: v => {
settings.timeSync = v;
updateSettings();
}
},
/*LANG*/"Disable UTF8" : {
value : !!settings.no_utf8,
onchange: v => {
settings.no_utf8 = v;
updateSettings();
}
},
/*LANG*/"Auto-Detect App Names" : {
value : !!settings.detectNames,
onchange: v => {
settings.detectNames = v;
updateSettings();
}
}
};
E.showMenu(mainmenu);
})