Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix: Prevent displaying menu items when offline in gallery settings

AmanRajSinghMourya74e1143edd72
diff --git a/mobile/apps/photos/lib/ui/settings/gallery_settings_screen.dart b/mobile/apps/photos/lib/ui/settings/gallery_settings_screen.dart
index cda8b73de1..4561a5bf19 100644
--- a/mobile/apps/photos/lib/ui/settings/gallery_settings_screen.dart
+++ b/mobile/apps/photos/lib/ui/settings/gallery_settings_screen.dart
@@ -106,7 +106,8 @@ class _GallerySettingsScreenState extends State<GallerySettingsScreen> {
});
},
),
- if (!widget.fromGalleryLayoutSettingsCTA) ...[
+ if (!widget.fromGalleryLayoutSettingsCTA &&
+ !isOfflineMode) ...[
const SizedBox(height: 8),
MenuItemWidgetNew(
title: AppLocalizations.of(context)