Skip to content

Commit 307da9f

Browse files
author
thyttan
committed
dtlaunch: Bangle 2: Use it's own chache file
1 parent f25bf09 commit 307da9f

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

apps/dtlaunch/ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ when moving pages. Add caching for faster startups.
3434
0.27: Bangle 2: Add setting to remember and present the last open page between instances of dtlaunch.
3535
0.28: Bangle 2: Fix showClocks and showLaunchers settings not taking effect by
3636
clearing cache when changing those settings.
37+
Bangle 2: Use a separate cache file from the standard launcher.

apps/dtlaunch/app-b2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
let s = require("Storage");
1818
// Borrowed caching from Icon Launcher, code by halemmerich.
19-
let launchCache = s.readJSON("launch.cache.json", true)||{};
19+
let launchCache = s.readJSON("dtlaunch.cache.json", true)||{};
2020
let launchHash = require("Storage").hash(/\.info/);
2121
if (launchCache.hash!=launchHash) {
2222
launchCache = {
@@ -31,7 +31,7 @@
3131
if (a.name>b.name) return 1;
3232
return 0;
3333
}) };
34-
s.writeJSON("launch.cache.json", launchCache);
34+
s.writeJSON("dtlaunch.cache.json", launchCache);
3535
}
3636
let apps = launchCache.apps;
3737
let page = 0;

apps/dtlaunch/settings-b2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
const timeOutChoices = [/*LANG*/"Off", "10s", "15s", "20s", "30s"];
1919

2020
function clearCache() {
21-
require("Storage").erase("launch.cache.json")
21+
require("Storage").erase("dtlaunch.cache.json")
2222
}
2323

2424
E.showMenu({

0 commit comments

Comments
 (0)