Skip to content

Commit d60189d

Browse files
author
thyttan
committed
Merge branch 'dtlaunch' into app-loader
2 parents dbcfe8b + b20a116 commit d60189d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
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/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)