Skip to content

Commit

Permalink
Fix install text initialization (#2162)
Browse files Browse the repository at this point in the history
  • Loading branch information
codefiles authored Oct 13, 2023
1 parent 5e59acf commit 7930ea5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions archinstall/lib/global_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,11 @@ def _is_config_valid(self) -> bool:
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):
Expand Down
3 changes: 2 additions & 1 deletion archinstall/lib/menu/abstract_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def pre_callback(self, selector_name):
""" 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

Expand Down Expand Up @@ -299,6 +299,7 @@ def _find_selection(self, selection_name: str) -> Tuple[str, Selector]:

def run(self, allow_reset: bool = False):
self._sync_all()
self.post_callback()
cursor_pos = None

while True:
Expand Down

0 comments on commit 7930ea5

Please sign in to comment.