Changed the info/settings page ordering
This commit is contained in:
@@ -24,6 +24,13 @@ static bool navCallback(uint8_t page, nbgl_pageContent_t* content) {
|
|||||||
|
|
||||||
switch (page) {
|
switch (page) {
|
||||||
case 0:
|
case 0:
|
||||||
|
content->type = INFOS_LIST;
|
||||||
|
content->infosList.nbInfos = 2;
|
||||||
|
content->infosList.infoTypes = (const char**) infoTypes;
|
||||||
|
content->infosList.infoContents = (const char**) infoContents;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 1:
|
||||||
switches[index++] =
|
switches[index++] =
|
||||||
(nbgl_layoutSwitch_t){.initState = N_storage.dataAllowed ? ON_STATE : OFF_STATE,
|
(nbgl_layoutSwitch_t){.initState = N_storage.dataAllowed ? ON_STATE : OFF_STATE,
|
||||||
.text = "Blind signing",
|
.text = "Blind signing",
|
||||||
@@ -48,7 +55,7 @@ static bool navCallback(uint8_t page, nbgl_pageContent_t* content) {
|
|||||||
content->switchesList.switches = (nbgl_layoutSwitch_t*) switches;
|
content->switchesList.switches = (nbgl_layoutSwitch_t*) switches;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 1:
|
case 2:
|
||||||
switches[index++] =
|
switches[index++] =
|
||||||
(nbgl_layoutSwitch_t){.initState = N_storage.verbose_eip712 ? ON_STATE : OFF_STATE,
|
(nbgl_layoutSwitch_t){.initState = N_storage.verbose_eip712 ? ON_STATE : OFF_STATE,
|
||||||
.text = "Verbose EIP712",
|
.text = "Verbose EIP712",
|
||||||
@@ -69,13 +76,6 @@ static bool navCallback(uint8_t page, nbgl_pageContent_t* content) {
|
|||||||
content->switchesList.switches = (nbgl_layoutSwitch_t*) switches;
|
content->switchesList.switches = (nbgl_layoutSwitch_t*) switches;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
|
||||||
content->type = INFOS_LIST;
|
|
||||||
content->infosList.nbInfos = 2;
|
|
||||||
content->infosList.infoTypes = (const char**) infoTypes;
|
|
||||||
content->infosList.infoContents = (const char**) infoContents;
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user