mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-15 18:00:59 +00:00
fix(core/ui): remove unnecessary newline
[no changelog]
This commit is contained in:
parent
a36e1e8126
commit
2435e8b101
@ -1114,7 +1114,10 @@ extern "C" fn new_show_warning(n_args: usize, args: *const Obj, kwargs: *mut Map
|
||||
let mut ops = OpTextLayout::new(theme::TEXT_NORMAL);
|
||||
ops = ops.alignment(geometry::Alignment::Center);
|
||||
if !warning.is_empty() {
|
||||
ops = ops.text_bold_upper(warning).newline();
|
||||
ops = ops.text_bold_upper(warning);
|
||||
if !description.is_empty() {
|
||||
ops = ops.newline();
|
||||
}
|
||||
}
|
||||
if !description.is_empty() {
|
||||
ops = ops.text_normal(description);
|
||||
|
Loading…
Reference in New Issue
Block a user