From eca837962c6ccc0716401d0a0c788a2da53b8e10 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Thu, 21 May 2026 15:49:09 +0200 Subject: [PATCH] fix: hide "Back to Mail" in settings when Pro mode is on --- app/(main)/[locale]/settings/page.tsx | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/app/(main)/[locale]/settings/page.tsx b/app/(main)/[locale]/settings/page.tsx index 7f58d935..9d129369 100644 --- a/app/(main)/[locale]/settings/page.tsx +++ b/app/(main)/[locale]/settings/page.tsx @@ -363,6 +363,7 @@ export default function SettingsPage() { const installedPlugins = usePluginStore((s) => s.plugins); const installedThemes = useThemeStore((s) => s.installedThemes); const sidebarAppsList = useSettingsStore((s) => s.sidebarApps); + const proInterface = useSettingsStore((s) => s.proInterface); // Build a per-tab haystack for fulltext search and a list of sub-results // (individual settings) per tab. Sub-results come from translation entries @@ -866,17 +867,19 @@ export default function SettingsPage() { )} style={{ width: `${settingsSidebarWidth}px` }} > -
- -
+ {!proInterface && ( +
+ +
+ )}