Skip to content

armgit / ente

Public Imported from GitHub
0

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

reset on force recompute in debug options

laurenspriem2351715682cd
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 0403fcfdbd..dbafcefd26 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
@@ -96,6 +96,7 @@ class _MLDebugSectionWidgetState extends State<MLDebugSectionWidget> {
onTap: () async {
try {
await wrappedService.forceRecompute();
+ await localSettings.resetWrapped2025Complete();
showShortToast(context, "Ente Rewind recomputed");
} catch (e, s) {
logger.severe('Wrapped recompute failed ', e, s);
diff --git a/mobile/apps/photos/lib/utils/local_settings.dart b/mobile/apps/photos/lib/utils/local_settings.dart
index e39665cca7..aa2170737b 100644
--- a/mobile/apps/photos/lib/utils/local_settings.dart
+++ b/mobile/apps/photos/lib/utils/local_settings.dart
@@ -253,4 +253,8 @@ class LocalSettings {
Future<void> setWrapped2025Complete() async {
await _prefs.setBool(_kWrapped2025Complete, true);
}
+
+ Future<void> resetWrapped2025Complete() async {
+ await _prefs.setBool(_kWrapped2025Complete, false);
+ }
}