diff --git a/src/bl3_mod_menu/outer_menu.py b/src/bl3_mod_menu/outer_menu.py index f83eb63..e0c4cc7 100644 --- a/src/bl3_mod_menu/outer_menu.py +++ b/src/bl3_mod_menu/outer_menu.py @@ -74,6 +74,12 @@ def add_menu_item_hook( always_minus_one: int, ) -> int: """Hook to inject the outermost mods option.""" + + # Add the mods option right before quit + if callback_name == "OnQuitClicked": + global last_mods_menu_idx + last_mods_menu_idx = add_menu_item(self, "MODS", "OnInviteListClearClicked", False, -1) + if callback_name in hide_menu_options and hide_menu_options[callback_name].value: # Surprisingly, just setting the return value to -1 just works, no menu item is drawn and # nothing seems to go wrong @@ -82,10 +88,6 @@ def add_menu_item_hook( # Show the item properly idx = add_menu_item(self, text, callback_name, big, always_minus_one) - if callback_name in ("OnStoreClicked", "OnPhotoModeClicked"): - global last_mods_menu_idx - last_mods_menu_idx = add_menu_item(self, "MODS", "OnInviteListClearClicked", False, -1) - return idx