diff --git a/apps/dtlaunch/ChangeLog b/apps/dtlaunch/ChangeLog index ae3c9bdec..38e5d3906 100644 --- a/apps/dtlaunch/ChangeLog +++ b/apps/dtlaunch/ChangeLog @@ -34,3 +34,4 @@ when moving pages. Add caching for faster startups. 0.27: Bangle 2: Add setting to remember and present the last open page between instances of dtlaunch. 0.28: Bangle 2: Fix showClocks and showLaunchers settings not taking effect by clearing cache when changing those settings. + Bangle 2: Use a separate cache file from the standard launcher. diff --git a/apps/dtlaunch/app-b2.js b/apps/dtlaunch/app-b2.js index ea163c57e..01842588b 100644 --- a/apps/dtlaunch/app-b2.js +++ b/apps/dtlaunch/app-b2.js @@ -16,7 +16,7 @@ let s = require("Storage"); // Borrowed caching from Icon Launcher, code by halemmerich. - let launchCache = s.readJSON("launch.cache.json", true)||{}; + let launchCache = s.readJSON("dtlaunch.cache.json", true)||{}; let launchHash = require("Storage").hash(/\.info/); if (launchCache.hash!=launchHash) { launchCache = { @@ -31,7 +31,7 @@ if (a.name>b.name) return 1; return 0; }) }; - s.writeJSON("launch.cache.json", launchCache); + s.writeJSON("dtlaunch.cache.json", launchCache); } let apps = launchCache.apps; let page = 0; diff --git a/apps/dtlaunch/settings-b2.js b/apps/dtlaunch/settings-b2.js index 3fdc5de6e..b297e17d8 100644 --- a/apps/dtlaunch/settings-b2.js +++ b/apps/dtlaunch/settings-b2.js @@ -18,7 +18,7 @@ const timeOutChoices = [/*LANG*/"Off", "10s", "15s", "20s", "30s"]; function clearCache() { - require("Storage").erase("launch.cache.json") + require("Storage").erase("dtlaunch.cache.json") } E.showMenu({