Apply preferences for menu item visibility correctly