Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix: don't keep updating if show memories is off

Prateek Sunal92fa3488b4d5
diff --git a/mobile/lib/services/memory_home_widget_service.dart b/mobile/lib/services/memory_home_widget_service.dart
index 1e750abb42..3cde0db47a 100644
--- a/mobile/lib/services/memory_home_widget_service.dart
+++ b/mobile/lib/services/memory_home_widget_service.dart
@@ -200,6 +200,11 @@ class MemoryHomeWidgetService {
);
if (value != null) {
+ final areMemoriesShown = memoriesCacheService.showAnyMemories;
+ if (!areMemoriesShown) {
+ _logger.warning("memories not enabled");
+ return;
+ }
await _setTotal(index);
if (index == 1) {
await _updateWidget(