hworldclock 0.37: Fix settings (show default as '90' not 'off')

pull/3629/head
Gordon Williams 2024-10-28 11:47:52 +00:00
parent 13e8c368bd
commit 6c050b5107
3 changed files with 4 additions and 2 deletions

View File

@ -21,3 +21,4 @@
0.34: Fix 'fast load' so clock doesn't always redraw when screen unlocked/locked 0.34: Fix 'fast load' so clock doesn't always redraw when screen unlocked/locked
0.35: Minor code improvements 0.35: Minor code improvements
0.36: Minor code improvements 0.36: Minor code improvements
0.37: Fix settings (show default as '90' not 'off')

View File

@ -2,7 +2,7 @@
"id": "hworldclock", "id": "hworldclock",
"name": "Hanks World Clock", "name": "Hanks World Clock",
"shortName": "Hanks World Clock", "shortName": "Hanks World Clock",
"version": "0.36", "version": "0.37",
"description": "Current time zone plus up to three others", "description": "Current time zone plus up to three others",
"allow_emulator":true, "allow_emulator":true,
"icon": "app.png", "icon": "app.png",

View File

@ -2,6 +2,7 @@
var FILE = "hworldclock.json"; var FILE = "hworldclock.json";
var settings = Object.assign({ var settings = Object.assign({
secondsOnUnlock: false, secondsOnUnlock: false,
rotationTarget: "90",
}, require('Storage').readJSON(FILE, true) || {}); }, require('Storage').readJSON(FILE, true) || {});
function writeSettings() { function writeSettings() {
@ -55,4 +56,4 @@
E.showMenu(mainmenu); E.showMenu(mainmenu);
}); })