Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Log calc time for memories update

laurenspriem0d99c90d9ff5
diff --git a/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart b/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart
index 0c719a2299..46acde870d 100644
--- a/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart
+++ b/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart
@@ -288,7 +288,10 @@ class _MLDebugSectionWidgetState extends State<MLDebugSectionWidget> {
trailingIconIsMuted: true,
onTap: () async {
try {
+ final now = DateTime.now();
await memoriesCacheService.updateCache(forced: true);
+ final duration = DateTime.now().difference(now);
+ showShortToast(context, "Done in ${duration.inSeconds} seconds");
} catch (e, s) {
logger.warning('Update memories failed', e, s);
await showGenericErrorDialog(context: context, error: e);