Skip to content

[dtlaunch] Error on console and 1st page doesn display images  #2627

Open
@dapgo

Description

@dapgo

Affected hardware version

Bangle 1

Your firmware version

2v16

The bug

Scenario: After launching the app, 1st page is empty, moving with btn3, so moving to next app, then the icon for second app is displayed and so on.

Expected: 1st page show 6 icons for apps

Checking on IDE, the app start with following errors:

2v16 (c) 2021 G.Williams
Uncaught Error: Expecting first argument to be an object or a String
 at line 14 col 211 in dtlaunch.app.js
...con),x+10,y+10,{scale:1.25});g.setColor(-1).setFontAlign(0,-...
                              ^
in function "draw_icon" called from line 15 col 218 in dtlaunch.app.js
...return i;draw_icon(p,i,selected==i);}
                                     ^
in function "drawPage" called from line 22 col 11 in dtlaunch.app.js
drawPage(0);

After clicking btn3, error on console:

Uncaught Error: Expecting first argument to be an object or a String
 at line 52 col 64 in dtlaunch.app.js
...con),x+10,y+10,{scale:1.25});
                              ^
in function "draw_icon" called from line 77 col 57 in dtlaunch.app.js
    if (oldselected>=0) draw_icon(page,oldselected,false);
                                                        ^
in function called from system

Screenshot - 02_03_2023 , 18_49_22
dtlaunch_emul_bj1

Installed apps

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions