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

This commit is contained in:
Prateek Sunal
2025-03-20 19:59:33 +05:30
parent a5c9ef207d
commit 92fa3488b4

View File

@@ -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(