Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorcodefiles <11915375+codefiles@users.noreply.github.com>2023-10-13 03:50:35 -0400
committerGitHub <noreply@github.com>2023-10-13 18:50:35 +1100
commit7930ea58fd3c55b38ff73949d74e9227ff351b60 (patch)
treeddce118722a1b8e1e8d8521cca8188e300c31101 /archinstall/lib
parent5e59acf937c3bb9cfe6a3b7a0a264b9df00239ee (diff)
Fix install text initialization (#2162)
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/global_menu.py4
-rw-r--r--archinstall/lib/menu/abstract_menu.py3
2 files changed, 4 insertions, 3 deletions
diff --git a/archinstall/lib/global_menu.py b/archinstall/lib/global_menu.py
index deda2ef6..86c341a7 100644
--- a/archinstall/lib/global_menu.py
+++ b/archinstall/lib/global_menu.py
@@ -211,11 +211,11 @@ class GlobalMenu(AbstractMenu):
return False
return self._validate_bootloader() is None
- def _update_install_text(self, name: str, value: str):
+ def _update_install_text(self, name: Optional[str] = None, value: Any = None):
text = self._install_text()
self._menu_options['install'].update_description(text)
- def post_callback(self, name: str, value: str):
+ def post_callback(self, name: Optional[str] = None, value: Any = None):
self._update_install_text(name, value)
def _install_text(self):
diff --git a/archinstall/lib/menu/abstract_menu.py b/archinstall/lib/menu/abstract_menu.py
index 053f3c30..2ceb6ca7 100644
--- a/archinstall/lib/menu/abstract_menu.py
+++ b/archinstall/lib/menu/abstract_menu.py
@@ -252,7 +252,7 @@ class AbstractMenu:
""" will be called before each action in the menu """
return
- def post_callback(self, selection_name: str, value: Any):
+ def post_callback(self, selection_name: Optional[str] = None, value: Any = None):
""" will be called after each action in the menu """
return True
@@ -299,6 +299,7 @@ class AbstractMenu:
def run(self, allow_reset: bool = False):
self._sync_all()
+ self.post_callback()
cursor_pos = None
while True: