Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/menu/menu.py
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/lib/menu/menu.py')
-rw-r--r--archinstall/lib/menu/menu.py9
1 files changed, 9 insertions, 0 deletions
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):