From f578ac4ade122bd4e29b4e2455d317499f2e8d10 Mon Sep 17 00:00:00 2001 From: correctmost <134317971+correctmost@users.noreply.github.com> Date: Sun, 1 Dec 2024 01:41:03 -0500 Subject: [PATCH] Remove unused argument from GlobalMenu._get_menu_options (#2977) --- archinstall/lib/global_menu.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/archinstall/lib/global_menu.py b/archinstall/lib/global_menu.py index a7468349..819092c9 100644 --- a/archinstall/lib/global_menu.py +++ b/archinstall/lib/global_menu.py @@ -50,7 +50,7 @@ class GlobalMenu(AbstractMenu): 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, @@ -59,7 +59,7 @@ class GlobalMenu(AbstractMenu): 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')), @@ -274,7 +274,7 @@ class GlobalMenu(AbstractMenu): 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: