Skip to content

Commit c9c1c15

Browse files
author
thyttan
committed
launch: fix respect showClocks setting
1 parent c28b6d3 commit c9c1c15

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

apps/launch/ChangeLog

+1
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@
2424
0.22: Add less padding between launcher items, use new font if available in 2v26+
2525
0.23: Draw a placeholder screen right at the start to speed up apparent boot time
2626
0.24: Fix fullscreen when fastloading the launcher. (TODO:fix back btn flicker)
27+
Fix respecting the showClocks setting.

apps/launch/app.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
hash : launchHash,
4444
apps : s.list(/\.info$/)
4545
.map(app=>{var a=s.readJSON(app,1);return a&&{name:a.name,type:a.type,icon:a.icon,sortorder:a.sortorder,src:a.src};})
46-
.filter(app=>app && (app.type=="app" || (app.type=="clock" && settings.showClocks) || !app.type))
46+
.filter(app=>app && (app.type=="app" || app.type=="clock" || !app.type))
4747
.sort((a,b)=>{
4848
var n=(0|a.sortorder)-(0|b.sortorder);
4949
if (n) return n; // do sortorder first
@@ -53,7 +53,7 @@
5353
}) };
5454
s.writeJSON("launch.cache.json", launchCache);
5555
}
56-
let apps = launchCache.apps;
56+
let apps = launchCache.apps.filter(app=>app.type!="clock" || settings.showClocks);
5757

5858

5959
const drawMenu = () => {

0 commit comments

Comments
 (0)