Fix compilation issue on Nano X + last flow step issue
@@ -61,9 +61,6 @@ void display_next_plugin_item(bool entering) {
dataContext.tokenContext.pluginUiState = PLUGIN_UI_INSIDE;
plugin_ui_get_item();
ux_flow_prev();
- // Reset multi page layout to the first page
- G_ux.layout_paging.current = 0;
- ux_layout_paging_redisplay(G_ux.stack_count-1);
}
else {
if (dataContext.tokenContext.pluginUiCurrentItem < dataContext.tokenContext.pluginUiMaxItems - 1) {
@@ -72,7 +69,11 @@ void display_next_plugin_item(bool entering) {
ux_flow_prev();
// Reset multi page layout to the first page
G_ux.layout_paging.current = 0;
+ #ifdef TARGET_NANOS
ux_layout_paging_redisplay(G_ux.stack_count-1);
+ #else
+ ux_layout_bnnn_paging_redisplay(0);
+ #endif
}
else {
dataContext.tokenContext.pluginUiState = PLUGIN_UI_OUTSIDE;
@@ -155,7 +156,8 @@ UX_FLOW_DEF_VALID(
"Reject",
});
-const ux_flow_step_t * const ux_plugin_approval_flow [] = {
+UX_FLOW(
+ ux_plugin_approval_flow,
&ux_plugin_approval_intro_step,
&ux_plugin_approval_id_step,
&ux_plugin_approval_before_step,
@@ -164,7 +166,7 @@ const ux_flow_step_t * const ux_plugin_approval_flow [] = {
&ux_plugin_approval_fees_step,
&ux_plugin_approval_ok_step,
&ux_plugin_approval_cancel_step
-};
+);
void plugin_ui_start() {
dataContext.tokenContext.pluginUiState = PLUGIN_UI_OUTSIDE;
