Changed the info/settings page ordering

This commit is contained in:
Alexandre Paillier
2023-06-12 14:18:57 +02:00
parent 779fc4b61d
commit 9186911abb

View File

@@ -24,6 +24,13 @@ static bool navCallback(uint8_t page, nbgl_pageContent_t* content) {
switch (page) {
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++] =
(nbgl_layoutSwitch_t){.initState = N_storage.dataAllowed ? ON_STATE : OFF_STATE,
.text = "Blind signing",
@@ -48,7 +55,7 @@ static bool navCallback(uint8_t page, nbgl_pageContent_t* content) {
content->switchesList.switches = (nbgl_layoutSwitch_t*) switches;
break;
case 1:
case 2:
switches[index++] =
(nbgl_layoutSwitch_t){.initState = N_storage.verbose_eip712 ? ON_STATE : OFF_STATE,
.text = "Verbose EIP712",
@@ -69,13 +76,6 @@ static bool navCallback(uint8_t page, nbgl_pageContent_t* content) {
content->switchesList.switches = (nbgl_layoutSwitch_t*) switches;
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:
return false;
break;