1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 06:48:16 +00:00

fix(core/ui): remove unnecessary newline

[no changelog]

(cherry picked from commit 2435e8b101)
This commit is contained in:
Ioan Bizău 2024-11-01 11:02:07 +01:00 committed by Martin Milata
parent 4f3f67eabd
commit 217239954d

View File

@ -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);