mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-03 16:56:07 +00:00
feat(ui): Add visibility-checking function to Maybe struct
This commit is contained in:
parent
72cd04dc34
commit
7f22d0d260
@ -66,6 +66,10 @@ where
|
||||
pub fn inner_mut(&mut self) -> &mut T {
|
||||
&mut self.inner
|
||||
}
|
||||
|
||||
pub fn is_visible(&self) -> bool {
|
||||
self.visible
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> Component for Maybe<T>
|
||||
|
Loading…
Reference in New Issue
Block a user