diff --git a/python_payload/st3m/ui/view.py b/python_payload/st3m/ui/view.py index 5e2f3cf09266202cf7cb26cb6f5477f36e96134b..31dbb2e7386843326c4d96701f61c7c947f2d408 100644 --- a/python_payload/st3m/ui/view.py +++ b/python_payload/st3m/ui/view.py @@ -258,3 +258,9 @@ class ViewManager(Responder): return self._incoming.show_icons() else: return True + + def is_active(self, view: View) -> bool: + """ + Returns true if the passed view is currently the active one. + """ + return self._incoming == view