diff --git a/src/components/SidebarDrawer.tsx b/src/components/SidebarDrawer.tsx index 8cb5ddbb..d7245904 100644 --- a/src/components/SidebarDrawer.tsx +++ b/src/components/SidebarDrawer.tsx @@ -39,6 +39,7 @@ import type { RootStackParamList } from '../navigation/types'; import type { Mailbox } from '../api/types'; import { MODAL_ORIENTATIONS } from '../lib/modal-orientations'; import { confirmSignOut } from '../lib/sign-out-confirm'; +import { setPendingSettingsTab } from '../navigation/pending-settings-tab'; const CHEVRON_SLOT = 20; const INDENT_STEP = 12; @@ -1044,8 +1045,15 @@ export default function SidebarDrawer({ visible, onClose, docked = false }: Side { onClose(); navigation.navigate('MainTabs'); }} - accessibilityLabel={t('sidebar.settings', 'Settings')} + // Opens the folder settings; it used to navigate to the screen + // already shown, which only closed the drawer. + onPress={() => { + onClose(); + setPendingSettingsTab('folders'); + navigation.navigate('MainTabs', { screen: 'Settings' } as never); + }} + accessibilityRole="button" + accessibilityLabel={t('settings.tabs.folders', 'Folders')} >