1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-06-26 01:42:34 +00:00

feat(ui): Add visibility-checking function to Maybe struct

This commit is contained in:
Lukas Bielesch 2025-01-14 18:22:02 +01:00 committed by obrusvit
parent e922a6958c
commit e6ee930a35

View File

@ -66,6 +66,10 @@ where
pub fn inner_mut(&mut self) -> &mut T { pub fn inner_mut(&mut self) -> &mut T {
&mut self.inner &mut self.inner
} }
pub fn is_visible(&self) -> bool {
self.visible
}
} }
impl<T> Component for Maybe<T> impl<T> Component for Maybe<T>