File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3737 ( parseInt ( s . read ( "dtlaunch.page" ) ) ?? 0 ) ;
3838
3939 const INIT_PAGE_APP_ZEROTH = page * 4 ;
40- const INIT_PAGE_APP_LAST = Math . min ( page * 4 + 3 , apps . length - 1 ) ;
40+ const INIT_PAGE_APP_LAST = ( page * 4 + 3 < apps . length - 1 ) ? page * 4 + 3 : apps . length - 1 ; // Math.min(page*4+3, apps.length-1); // FIXME:What is fastest?
4141 for ( let i = INIT_PAGE_APP_ZEROTH ; i <= INIT_PAGE_APP_LAST ; i ++ ) { // Initially only load icons for the current page.
4242 if ( apps [ i ] . icon )
4343 apps [ i ] . icon = s . read ( apps [ i ] . icon ) ; // should just be a link to a memory area
4444 }
4545
4646 let Napps = apps . length ;
47- let Npages = Math . ceil ( Napps / 4 ) ;
47+ let Npages = parseInt ( Napps / 4 + 1 ) ; // Math.ceil(Napps/4); // FIXME: What is fastest?
4848 let maxPage = Npages - 1 ;
4949 let selected = - 1 ;
5050 //let oldselected = -1;
You can’t perform that action at this time.
0 commit comments