@@ -94,6 +94,16 @@ static void h_blindsign_toggle() { app_mode_set_blindsign(!app_mode_blindsign())
94
94
95
95
static void confirm_error (__Z_UNUSED bool confirm ) { h_error_accept (0 ); }
96
96
97
+ static void goto_settings (bool confirm ) {
98
+ if (confirm ) {
99
+ view_settings_show_impl ();
100
+ } else {
101
+ view_idle_show_impl (0 , NULL );
102
+ }
103
+ UX_WAIT ();
104
+ app_reply_error ();
105
+ }
106
+
97
107
static void reviewAddressChoice (bool confirm ) {
98
108
if (confirm ) {
99
109
nbgl_useCaseReviewStatus (STATUS_TYPE_ADDRESS_VERIFIED , h_approve_internal );
@@ -154,14 +164,23 @@ void view_custom_error_show(const char *upper, const char *lower) {
154
164
}
155
165
156
166
void view_blindsign_error_show () {
157
- nbgl_useCaseChoice (& C_Warning_64px , "This message cannot\nbe clear-signed" ,
158
- "Enable blind-signing in\nthe settings to sign\nthis transaction." , "Exit" , "" , confirm_error );
167
+ nbgl_useCaseChoice (& C_Warning_64px ,
168
+ "This transaction cannot\nbe clear-signed" ,
169
+ "Enable blind signing in the\nsettings to sign this\ntransaction." ,
170
+ "Go to settings" ,
171
+ "Reject Transaction" ,
172
+ goto_settings );
159
173
}
160
174
161
175
void view_error_show_impl () {
162
176
nbgl_useCaseChoice (& C_Important_Circle_64px , viewdata .key , viewdata .value , "Ok" , NULL , confirm_setting );
163
177
}
164
178
179
+ void view_settings_show_impl () {
180
+ nbgl_useCaseHomeAndSettings (MENU_MAIN_APP_LINE1 , & C_icon_stax_64 , HOME_TEXT , 0 , & settingContents ,
181
+ & infoList , NULL , app_quit );
182
+ }
183
+
165
184
static uint8_t get_pair_number () {
166
185
uint8_t numItems = 0 ;
167
186
uint8_t numPairs = 0 ;
0 commit comments