File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,12 @@ enum DismissType {
143
143
Timeout ( Timeout ) ,
144
144
}
145
145
146
+ impl DismissType {
147
+ fn limited_timeout ( time_ms : u32 ) -> Self {
148
+ Self :: Timeout ( Timeout :: new ( if animation_disabled ( ) { 0 } else { time_ms } ) )
149
+ }
150
+ }
151
+
146
152
impl StatusScreen {
147
153
fn new (
148
154
icon : Icon ,
@@ -177,7 +183,7 @@ impl StatusScreen {
177
183
theme:: ICON_SIMPLE_CHECKMARK30 ,
178
184
theme:: GREEN_LIME ,
179
185
theme:: GREEN_LIGHT ,
180
- DismissType :: Timeout ( Timeout :: new ( time_ms) ) ,
186
+ DismissType :: limited_timeout ( time_ms) ,
181
187
msg,
182
188
)
183
189
}
@@ -197,7 +203,7 @@ impl StatusScreen {
197
203
theme:: ICON_SIMPLE_CHECKMARK30 ,
198
204
theme:: GREY_EXTRA_LIGHT ,
199
205
theme:: GREY_DARK ,
200
- DismissType :: Timeout ( Timeout :: new ( TIMEOUT_MS ) ) ,
206
+ DismissType :: limited_timeout ( TIMEOUT_MS ) ,
201
207
msg,
202
208
)
203
209
}
Original file line number Diff line number Diff line change @@ -87,7 +87,11 @@ impl ActionBar {
87
87
Mode :: Timeout ,
88
88
None ,
89
89
Some ( button. initially_enabled ( false ) ) ,
90
- Some ( Timeout :: new ( timeout_ms) ) ,
90
+ Some ( Timeout :: new ( if animation_disabled ( ) {
91
+ 0
92
+ } else {
93
+ timeout_ms
94
+ } ) ) ,
91
95
)
92
96
}
93
97
Original file line number Diff line number Diff line change @@ -1322,7 +1322,6 @@ def input_flow_eckhart(self) -> BRGeneratorType:
1322
1322
self .debug .click (self .debug .screen_buttons .vertical_menu_items ()[2 ])
1323
1323
self .debug .synchronize_at ("TextScreen" )
1324
1324
self .debug .click (self .debug .screen_buttons .ok ())
1325
- self .debug .click (self .debug .screen_buttons .ok ())
1326
1325
1327
1326
1328
1327
class InputFlowSignTxInformationReplacement (InputFlowBase ):
You can’t perform that action at this time.
0 commit comments