mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-17 21:22:10 +00:00
fix(core/rust): Fix request_complete_repaint for components without any Child descendants
This commit is contained in:
parent
129363f080
commit
a7a305d34d
@ -127,6 +127,10 @@ where
|
||||
#[cfg(feature = "ui_debug")]
|
||||
panic!("cannot raise messages during RequestPaint");
|
||||
}
|
||||
// Make sure to at least a propagate the paint flag upwards (in case there are
|
||||
// no `Child` instances in `self`, paint would not get automatically requested
|
||||
// by sending `Event::RequestPaint` down the tree).
|
||||
ctx.request_paint();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user