Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix: Hide shared items from home for offline gallery

AmanRajSinghMourya1082bfb515dd
diff --git a/mobile/apps/photos/lib/ui/settings/search/settings_search_registry.dart b/mobile/apps/photos/lib/ui/settings/search/settings_search_registry.dart
index c7b5d6e988..564c46e4b2 100644
--- a/mobile/apps/photos/lib/ui/settings/search/settings_search_registry.dart
+++ b/mobile/apps/photos/lib/ui/settings/search/settings_search_registry.dart
@@ -365,19 +365,21 @@ class SettingsSearchRegistry {
),
);
- items.add(
- SettingsSearchItem(
- title: l10n.hideSharedItemsFromHomeGallery,
- subtitle: l10n.gallery,
- sectionPath: "${l10n.appearance} > ${l10n.gallery}",
- icon: HugeIcons.strokeRoundedImage01,
- routeBuilder: (_) => const GallerySettingsScreen(
- fromGalleryLayoutSettingsCTA: false,
+ if (!isOffline) {
+ items.add(
+ SettingsSearchItem(
+ title: l10n.hideSharedItemsFromHomeGallery,
+ subtitle: l10n.gallery,
+ sectionPath: "${l10n.appearance} > ${l10n.gallery}",
+ icon: HugeIcons.strokeRoundedImage01,
+ routeBuilder: (_) => const GallerySettingsScreen(
+ fromGalleryLayoutSettingsCTA: false,
+ ),
+ isSubPage: true,
+ keywords: ["shared", "hide", "home gallery"],
),
- isSubPage: true,
- keywords: ["shared", "hide", "home gallery"],
- ),
- );
+ );
+ }
// Machine Learning settings
if (hasLoggedIn || isOffline) {