File tree Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 23
23
0.21: Make the "App source not found" warning less buggy
24
24
0.22: Add less padding between launcher items, use new font if available in 2v26+
25
25
0.23: Draw a placeholder screen right at the start to speed up apparent boot time
26
- 0.24: Fix Launcher when a custom font from 2v26+ is specified (fix #3787)
26
+ 0.24: Fix Launcher when a custom font from 2v26+ is specified (fix #3787)
27
+ Fix fullscreen when fastloading the launcher. (TODO:fix back btn flicker)
28
+ Fix showClocks setting not taking effect by now clearing cache when
29
+ changing those settings.
Original file line number Diff line number Diff line change 22
22
let height = 50 * scaleval ;
23
23
24
24
// Now apps list is loaded - render
25
- if ( ! settings . fullscreen )
25
+ if ( ! settings . fullscreen ) {
26
26
Bangle . loadWidgets ( ) ;
27
+ } else if ( global . WIDGETS ) {
28
+ require ( "widget_utils" ) . hide ( ) ;
29
+ }
27
30
let R = Bangle . appRect ;
28
31
g . reset ( ) . clearRect ( R ) . setColor ( "#888" ) ;
29
32
for ( var y = R . y ; y < R . y2 ; y += height ) {
81
84
// cleanup the timeout to not leave anything behind after being removed from ram
82
85
if ( lockTimeout ) clearTimeout ( lockTimeout ) ;
83
86
Bangle . removeListener ( "lock" , lockHandler ) ;
87
+ // Restore widgets if they were hidden by fullscreen setting
88
+ if ( global . WIDGETS && settings . fullscreen ) require ( "widget_utils" ) . show ( ) ;
84
89
}
85
90
} ) ;
86
91
g . flip ( ) ; // force a render before widgets have finished drawing
100
105
101
106
if ( ! settings . fullscreen ) // finally draw widgets
102
107
Bangle . drawWidgets ( ) ;
103
- }
108
+ }
Original file line number Diff line number Diff line change 10
10
settings [ key ] = value ;
11
11
require ( "Storage" ) . write ( "launch.json" , settings ) ;
12
12
}
13
+ function clearCache ( ) {
14
+ require ( "Storage" ) . erase ( "launch.cache.json" )
15
+ }
13
16
const appMenu = {
14
17
"" : { "title" : /*LANG*/ "Launcher" } ,
15
18
/*LANG*/ "< Back" : back ,
26
29
} ,
27
30
/*LANG*/ "Show Clocks" : {
28
31
value : settings . showClocks == true ,
29
- onchange : ( m ) => { save ( "showClocks" , m ) }
32
+ onchange : ( m ) => {
33
+ save ( "showClocks" , m ) ;
34
+ clearCache ( ) ;
35
+ }
30
36
} ,
31
37
/*LANG*/ "Fullscreen" : {
32
38
value : settings . fullscreen == true ,
You can’t perform that action at this time.
0 commit comments