Pastel: incorpprated lazybones idle timer
parent
8a222a382a
commit
545452d657
|
|
@ -34,9 +34,7 @@ function loadSettings() {
|
||||||
settings = require("Storage").readJSON(SETTINGS_FILE,1)||{};
|
settings = require("Storage").readJSON(SETTINGS_FILE,1)||{};
|
||||||
settings.grid = settings.grid||false;
|
settings.grid = settings.grid||false;
|
||||||
settings.font = settings.font||"Lato";
|
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 = settings.idle_check||true;
|
|
||||||
settings.idle_check = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// requires the myLocation app
|
// requires the myLocation app
|
||||||
|
|
|
||||||
|
|
@ -53,12 +53,23 @@
|
||||||
save();
|
save();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
// for use when the new menu system goes live
|
||||||
|
/*
|
||||||
'Idle Warning': {
|
'Idle Warning': {
|
||||||
value: s.idle_check,
|
value: s.idle_check,
|
||||||
onchange : v => {
|
onchange : v => {
|
||||||
s.idle_check = v;
|
s.idle_check = v;
|
||||||
save();
|
save();
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
*/
|
||||||
|
'Idle Warning': {
|
||||||
|
value: s.idle_check,
|
||||||
|
format: () => (s.idle_check ? 'Yes' : 'No'),
|
||||||
|
onchange: () => {
|
||||||
|
s.idle_check = !s.idle_check;
|
||||||
|
save();
|
||||||
|
},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue