forked from FOSS/BangleApps
commit
a89b8b680d
|
@ -798,12 +798,6 @@ module.exports = {
|
||||||
"no-undef"
|
"no-undef"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"ratchet_launch/app.js": {
|
|
||||||
"hash": "592d432301d7836aa54e288d465ae8952ecb891d628f824ea9f62479a2a01631",
|
|
||||||
"rules": [
|
|
||||||
"no-undef"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"rclock/rclock.app.js": {
|
"rclock/rclock.app.js": {
|
||||||
"hash": "8e698787730601a1bba71aff03204c2adfaf7eeb77b35dc706534755f63f613b",
|
"hash": "8e698787730601a1bba71aff03204c2adfaf7eeb77b35dc706534755f63f613b",
|
||||||
"rules": [
|
"rules": [
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
0.01: Initial release
|
0.01: Initial release
|
||||||
0.02: Cache the app-launch info
|
0.02: Cache the app-launch info
|
||||||
|
0.03: Fix bugs that would make the launcher unusable on most watches
|
||||||
|
|
|
@ -5,13 +5,13 @@ var font = g.getFonts().includes("6x15") ? "6x15" : "6x8:2";
|
||||||
var largeFont = g.getFonts().includes("12x20") ? "12x20" : "6x8:3";
|
var largeFont = g.getFonts().includes("12x20") ? "12x20" : "6x8:3";
|
||||||
var currentApp = 0;
|
var currentApp = 0;
|
||||||
var overscroll = 0;
|
var overscroll = 0;
|
||||||
var blankImage = Graphics.createImage(` `);
|
var blankImage = Graphics.createImage(`\n \n`);
|
||||||
var rowHeight = g.getHeight()/3;
|
var rowHeight = g.getHeight()/3;
|
||||||
|
|
||||||
// Load apps list
|
// Load apps list
|
||||||
var apps;
|
var apps;
|
||||||
|
|
||||||
var launchCache = s.readJSON("launch.cache.json", true)||{};
|
var launchCache = Storage.readJSON("launch.cache.json", true)||{};
|
||||||
var launchHash = require("Storage").hash(/\.info/);
|
var launchHash = require("Storage").hash(/\.info/);
|
||||||
if (launchCache.hash==launchHash) {
|
if (launchCache.hash==launchHash) {
|
||||||
apps = launchCache.apps;
|
apps = launchCache.apps;
|
||||||
|
@ -39,7 +39,7 @@ if (launchCache.hash==launchHash) {
|
||||||
});
|
});
|
||||||
|
|
||||||
launchCache = { apps, hash: launchHash };
|
launchCache = { apps, hash: launchHash };
|
||||||
s.writeJSON("launch.cache.json", launchCache);
|
Storage.writeJSON("launch.cache.json", launchCache);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Uncomment for testing in the emulator without apps:
|
// Uncomment for testing in the emulator without apps:
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "ratchet_launch",
|
"id": "ratchet_launch",
|
||||||
"name": "Ratchet Launcher",
|
"name": "Ratchet Launcher",
|
||||||
"shortName": "Ratchet",
|
"shortName": "Ratchet",
|
||||||
"version": "0.02",
|
"version": "0.03",
|
||||||
"description": "Launcher with discrete scrolling for quicker app selection",
|
"description": "Launcher with discrete scrolling for quicker app selection",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"type": "launch",
|
"type": "launch",
|
||||||
|
|
Loading…
Reference in New Issue