index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Daniel Girtler <blackrabbit256@gmail.com> | 2023-07-25 19:19:14 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-25 11:19:14 +0200 |
commit | a548d7df70102252a557214edc74b77f4859f031 (patch) | |
tree | 34fafdea7186d97bcb3043945ee259aa0565eae0 /archinstall/lib/menu/menu.py | |
parent | 439bb5428bb6a6f512f695a83ee6b3b8f6537598 (diff) |
-rw-r--r-- | archinstall/lib/menu/menu.py | 9 |
diff --git a/archinstall/lib/menu/menu.py b/archinstall/lib/menu/menu.py index 768dfe55..358ba5e4 100644 --- a/archinstall/lib/menu/menu.py +++ b/archinstall/lib/menu/menu.py @@ -34,6 +34,11 @@ class MenuSelection: class Menu(TerminalMenu): + _menu_is_active: bool = False + + @staticmethod + def is_menu_active() -> bool: + return Menu._menu_is_active @classmethod def back(cls) -> str: @@ -260,6 +265,8 @@ class Menu(TerminalMenu): return MenuSelection(type_=MenuSelectionType.Skip) def run(self) -> MenuSelection: + Menu._menu_is_active = True + selection = self._show() if selection.type_ == MenuSelectionType.Reset: @@ -277,6 +284,8 @@ class Menu(TerminalMenu): selection.type_ = MenuSelectionType.Skip selection.value = None + Menu._menu_is_active = False + return selection def set_cursor_pos(self,pos :int): |