Skip to content

Commit

Permalink
A window to exit the signing
Browse files Browse the repository at this point in the history
  • Loading branch information
jjos2372 committed May 23, 2020
1 parent ab7101a commit 6a65e8c
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@ const ux_flow_step_t * const ux_idle_flow [] = {
FLOW_END_STEP,
};

// ui_idle displays the main menu. Note that your app isn't required to use a
// menu as its idle screen; you can define your own completely custom screen.
void ui_idle() {
// reserve a display stack slot if none yet
if(G_ux.stack_count == 0) {
ux_stack_push();
}
ux_flow_init(0, ux_idle_flow, NULL);
}

UX_STEP_NOCB(
ux_signing_flow_1_step,
pnn,
Expand All @@ -71,22 +81,20 @@ UX_STEP_NOCB(
"Signing the",
"transaction",
});
UX_STEP_VALID(
ux_signing_flow_back,
pb,
ui_idle(),
{
&C_icon_back,
"Back",
});
const ux_flow_step_t * const ux_signing_flow [] = {
&ux_signing_flow_1_step,
&ux_signing_flow_back,
FLOW_END_STEP,
};


// ui_idle displays the main menu. Note that your app isn't required to use a
// menu as its idle screen; you can define your own completely custom screen.
void ui_idle() {
// reserve a display stack slot if none yet
if(G_ux.stack_count == 0) {
ux_stack_push();
}
ux_flow_init(0, ux_idle_flow, NULL);
}

void ui_signing() {
// reserve a display stack slot if none yet
if(G_ux.stack_count == 0) {
Expand Down

0 comments on commit 6a65e8c

Please sign in to comment.