1
0
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:
Jan Pochyla 2021-11-26 19:42:47 +01:00 committed by matejcik
parent 129363f080
commit a7a305d34d

View File

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