From c16067e71c4b49701418371c087e257ee74b7fbf Mon Sep 17 00:00:00 2001 From: Lukas Bielesch Date: Tue, 14 Jan 2025 18:22:02 +0100 Subject: [PATCH] feat(ui): Add visibility-checking function to Maybe struct --- core/embed/rust/src/ui/component/maybe.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/embed/rust/src/ui/component/maybe.rs b/core/embed/rust/src/ui/component/maybe.rs index 93aa00512c..ae341f3a7a 100644 --- a/core/embed/rust/src/ui/component/maybe.rs +++ b/core/embed/rust/src/ui/component/maybe.rs @@ -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 Component for Maybe