diff --git a/python_payload/st3m/ui/view.py b/python_payload/st3m/ui/view.py index 31dbb2e7386843326c4d96701f61c7c947f2d408..fd9cea509e4ef818dea1135caa8d2ce77e39e4dc 100644 --- a/python_payload/st3m/ui/view.py +++ b/python_payload/st3m/ui/view.py @@ -58,6 +58,11 @@ class BaseView(View): def think(self, ins: InputState, delta_ms: int) -> None: self.input.think(ins, delta_ms) + def is_active(self) -> bool: + if not self.vm: + return False + return self.vm.is_active(self) + class ViewTransition(ABCBase): """