Pastel: incorpprated lazybones idle timer

pull/1433/head
hughbarney 2022-02-12 11:50:52 +00:00
parent 8a222a382a
commit 545452d657
2 changed files with 12 additions and 3 deletions

View File

@ -34,9 +34,7 @@ function loadSettings() {
settings = require("Storage").readJSON(SETTINGS_FILE,1)||{};
settings.grid = settings.grid||false;
settings.font = settings.font||"Lato";
// force to true until 2.12.27 or later becomes mainstream
//settings.idle_check = settings.idle_check||true;
settings.idle_check = true;
settings.idle_check = settings.idle_check||true;
}
// requires the myLocation app

View File

@ -53,12 +53,23 @@
save();
},
},
// for use when the new menu system goes live
/*
'Idle Warning': {
value: s.idle_check,
onchange : v => {
s.idle_check = v;
save();
},
},
*/
'Idle Warning': {
value: s.idle_check,
format: () => (s.idle_check ? 'Yes' : 'No'),
onchange: () => {
s.idle_check = !s.idle_check;
save();
},
}
})
})