Skip to content

Commit f25bf09

Browse files
author
thyttan
committed
dtlaunch: Bangle 2: Fix showClocks and showLaunchers settings
... not taking effect by now clearing cache when changing those settings.
1 parent 97d86e6 commit f25bf09

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

apps/dtlaunch/ChangeLog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@ when moving pages. Add caching for faster startups.
3232
0.25: Minor code improvements
3333
0.26: Bangle 2: Postpone loading icons that are not needed initially.
3434
0.27: Bangle 2: Add setting to remember and present the last open page between instances of dtlaunch.
35+
0.28: Bangle 2: Fix showClocks and showLaunchers settings not taking effect by
36+
clearing cache when changing those settings.

apps/dtlaunch/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "dtlaunch",
33
"name": "Desktop Launcher",
4-
"version": "0.27",
4+
"version": "0.28",
55
"description": "Desktop style App Launcher with six (four for Bangle 2) apps per page - fast access if you have lots of apps installed.",
66
"screenshots": [{"url":"shot1.png"},{"url":"shot2.png"},{"url":"shot3.png"}],
77
"icon": "icon.png",

apps/dtlaunch/settings-b2.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717

1818
const timeOutChoices = [/*LANG*/"Off", "10s", "15s", "20s", "30s"];
1919

20+
function clearCache() {
21+
require("Storage").erase("launch.cache.json")
22+
}
23+
2024
E.showMenu({
2125
"" : { "title" : "Desktop launcher" },
2226
/*LANG*/"< Back" : () => back(),
@@ -25,13 +29,15 @@
2529
onchange: v => {
2630
settings.showClocks = v;
2731
writeSettings();
32+
clearCache();
2833
}
2934
},
3035
/*LANG*/'Show launchers': {
3136
value: settings.showLaunchers,
3237
onchange: v => {
3338
settings.showLaunchers = v;
3439
writeSettings();
40+
clearCache();
3541
}
3642
},
3743
/*LANG*/'Direct launch': {

0 commit comments

Comments
 (0)