Skip to content

armgit / ente

Public Imported from GitHub
0

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

Put debug options behind feature flag

laurenspriem98f91ab848fe
diff --git a/mobile/apps/photos/lib/ui/settings/debug/ml_debug_section_widget.dart b/mobile/apps/photos/lib/ui/settings/debug/ml_debug_section_widget.dart
index 556529ce79..d2c9895b86 100644
--- a/mobile/apps/photos/lib/ui/settings/debug/ml_debug_section_widget.dart
+++ b/mobile/apps/photos/lib/ui/settings/debug/ml_debug_section_widget.dart
@@ -84,6 +84,25 @@ class _MLDebugSectionWidgetState extends State<MLDebugSectionWidget> {
logger.info("Building ML Debug section options");
return Column(
children: [
+ if (wrappedService.isEnabled) sectionOptionSpacing,
+ if (wrappedService.isEnabled)
+ MenuItemWidget(
+ captionedTextWidget: const CaptionedTextWidget(
+ title: "Recompute Wrapped 2025",
+ ),
+ pressedColor: getEnteColorScheme(context).fillFaint,
+ trailingIcon: Icons.chevron_right_outlined,
+ trailingIconIsMuted: true,
+ onTap: () async {
+ try {
+ await wrappedService.forceRecompute();
+ showShortToast(context, "Wrapped 2025 recomputed");
+ } catch (e, s) {
+ logger.severe('Wrapped recompute failed ', e, s);
+ await showGenericErrorDialog(context: context, error: e);
+ }
+ },
+ ),
sectionOptionSpacing,
MenuItemWidget(
captionedTextWidget: const CaptionedTextWidget(
@@ -104,24 +123,6 @@ class _MLDebugSectionWidgetState extends State<MLDebugSectionWidget> {
},
),
sectionOptionSpacing,
- MenuItemWidget(
- captionedTextWidget: const CaptionedTextWidget(
- title: "Recompute Wrapped 2025",
- ),
- pressedColor: getEnteColorScheme(context).fillFaint,
- trailingIcon: Icons.chevron_right_outlined,
- trailingIconIsMuted: true,
- onTap: () async {
- try {
- await wrappedService.forceRecompute();
- showShortToast(context, "Wrapped 2025 recomputed");
- } catch (e, s) {
- logger.severe('Wrapped recompute failed ', e, s);
- await showGenericErrorDialog(context: context, error: e);
- }
- },
- ),
- sectionOptionSpacing,
MenuItemWidget(
captionedTextWidget: const CaptionedTextWidget(
title: "Show pending notifications",