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:
authorDaniel Girtler <blackrabbit256@gmail.com>2023-07-25 19:19:14 +1000
committerGitHub <noreply@github.com>2023-07-25 11:19:14 +0200
commita548d7df70102252a557214edc74b77f4859f031 (patch)
tree34fafdea7186d97bcb3043945ee259aa0565eae0 /archinstall/lib/menu/menu.py
parent439bb5428bb6a6f512f695a83ee6b3b8f6537598 (diff)
Fix 1916 (#1920)
* Do not stdout when menu is active * Handle missing libfido2 gracefully * Update --------- Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
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):