Add toggle for haptic feedback

master
RKBoss6 2025-07-11 15:27:34 -04:00 committed by GitHub
parent 7f78a473dd
commit 8bdd21fc40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 1 deletions

View File

@ -2,7 +2,8 @@
(function(back) { (function(back) {
let settings = Object.assign({ let settings = Object.assign({
showClocks: true, showClocks: true,
fullscreen: false fullscreen: false,
buzz:false
}, require("Storage").readJSON("taglaunch.json", true) || {}); }, require("Storage").readJSON("taglaunch.json", true) || {});
let fonts = g.getFonts(); let fonts = g.getFonts();
@ -24,6 +25,13 @@
min:10, max: 25,step:1,wrap:true, min:10, max: 25,step:1,wrap:true,
onchange: (m) => {save("vectorsize", m)} onchange: (m) => {save("vectorsize", m)}
}, },
/*LANG*/"Haptic Feedback": {
value: settings.buzz == true,
onchange: (m) => {
save("buzz", m);
require("Storage").erase("taglaunch.cache.json"); //delete the cache app list
}
},
/*LANG*/"Show Clocks": { /*LANG*/"Show Clocks": {
value: settings.showClocks == true, value: settings.showClocks == true,
onchange: (m) => { onchange: (m) => {