Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

make customCacheDirectory a electron only setting

Abhinavc2d2dc36dc15
diff --git a/apps/photos/src/components/Sidebar/AdvancedSettings.tsx b/apps/photos/src/components/Sidebar/AdvancedSettings.tsx
index 13794d0afc..3198591792 100644
--- a/apps/photos/src/components/Sidebar/AdvancedSettings.tsx
+++ b/apps/photos/src/components/Sidebar/AdvancedSettings.tsx
@@ -78,22 +78,23 @@ export default function AdvancedSettings({ open, onClose, onRootClose }) {
<Box px={'8px'}>
<Stack py="20px" spacing="24px">
- <CacheDirectory />
-
{isElectron() && (
- <Box>
- <MenuSectionTitle
- title={t('LABS')}
- icon={<ScienceIcon />}
- />
- <MenuItemGroup>
- <EnteMenuItem
- endIcon={<ChevronRight />}
- onClick={openMlSearchSettings}
- label={t('ML_SEARCH')}
+ <>
+ <CacheDirectory />
+ <Box>
+ <MenuSectionTitle
+ title={t('LABS')}
+ icon={<ScienceIcon />}
/>
- </MenuItemGroup>
- </Box>
+ <MenuItemGroup>
+ <EnteMenuItem
+ endIcon={<ChevronRight />}
+ onClick={openMlSearchSettings}
+ label={t('ML_SEARCH')}
+ />
+ </MenuItemGroup>
+ </Box>
+ </>
)}
<Box>
<MenuItemGroup>