Skip to content

Commit

Permalink
Remove unused argument from GlobalMenu._get_menu_options (archlinux#2977
Browse files Browse the repository at this point in the history
)
  • Loading branch information
correctmost authored and castillofrancodamian committed Dec 21, 2024
1 parent c9a2301 commit f3035e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions archinstall/lib/global_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __init__(self, data_store: dict[str, Any]):
if 'archinstall-language' not in data_store:
data_store['archinstall-language'] = translation_handler.get_language_by_abbr('en')

menu_optioons = self._get_menu_options(data_store)
menu_optioons = self._get_menu_options()
self._item_group = MenuItemGroup(
menu_optioons,
sort_items=False,
Expand All @@ -59,7 +59,7 @@ def __init__(self, data_store: dict[str, Any]):

super().__init__(self._item_group, data_store)

def _get_menu_options(self, data_store: dict[str, Any]) -> list[MenuItem]:
def _get_menu_options(self) -> list[MenuItem]:
return [
MenuItem(
text=str(_('Archinstall language')),
Expand Down Expand Up @@ -274,7 +274,7 @@ def _upate_lang_text(self) -> None:
The options for the global menu are generated with a static text;
each entry of the menu needs to be updated with the new translation
"""
new_options = self._get_menu_options(self._data_store)
new_options = self._get_menu_options()

for o in new_options:
if o.key is not None:
Expand Down

0 comments on commit f3035e6

Please sign in to comment.