1
0
Fork 0

welcome 0.14: Turn off and run later to use softOff to time is set right

plus other minor tweaks
master
Gordon Williams 2021-11-24 12:56:56 +00:00
parent dabc22c2d7
commit 94bd895baf
4 changed files with 9 additions and 4 deletions

View File

@ -51,6 +51,7 @@
{
"id": "android",
"name": "Android Integration",
"shortName": "Android",
"version": "0.03",
"description": "(BETA) App to display notifications from Gadgetbridge on Android. This will eventually replace the Gadgetbridge widget.",
"icon": "app.png",
@ -213,7 +214,7 @@
"id": "welcome",
"name": "Welcome",
"shortName": "Welcome",
"version": "0.13",
"version": "0.14",
"description": "Appears at first boot and explains how to use Bangle.js",
"icon": "app.png",
"screenshots": [{"url":"screenshot_welcome.png"}],

View File

@ -15,3 +15,4 @@
0.11: Fix initial screen fill colour
0.12: Fix swipe direction (#800)
0.13: Mods for Bangle.js 2
0.14: Turn off and run later to use softOff to time is set right

View File

@ -11,7 +11,8 @@
'Run Now': () => load('welcome.app.js'),
'Turn off & run next': () => {
require('Storage').write('welcome.json', {welcomed: false});
Bangle.off();
Bangle.setLocked(true); // fix for pre-2v11 firmware that can accidentally leave touchscreen on
if (Bangle.softOff()) Bangle.softOff(); else Bangle.off();
},
'< Back': back,
})

View File

@ -171,7 +171,9 @@ function onAppJSONLoaded() {
if (deviceId !== undefined)
filterAppsForDevice(deviceId);
return new Promise(resolve => {
/* Disable external screenshot loading - seems we probably have enough
screenshots added manually in apps.json */
/*return new Promise(resolve => {
httpGet("screenshots.json").then(screenshotJSON=>{
var screenshots = [];
try {
@ -189,5 +191,5 @@ function onAppJSONLoaded() {
console.log("No screenshots.json found");
resolve();
});
});
});*/
}