mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-02 04:18:20 +00:00
fix(core/ui): remove unnecessary newline
[no changelog]
(cherry picked from commit 2435e8b101
)
This commit is contained in:
parent
7eb3c8d0ce
commit
141d1ebc1d
@ -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);
|
let mut ops = OpTextLayout::new(theme::TEXT_NORMAL);
|
||||||
ops = ops.alignment(geometry::Alignment::Center);
|
ops = ops.alignment(geometry::Alignment::Center);
|
||||||
if !warning.is_empty() {
|
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() {
|
if !description.is_empty() {
|
||||||
ops = ops.text_normal(description);
|
ops = ops.text_normal(description);
|
||||||
|
Loading…
Reference in New Issue
Block a user