fix: refresh tap

This commit is contained in:
Prateek Sunal
2025-07-01 19:11:13 +05:30
parent 68fa4d87eb
commit 910a64dc1c
3 changed files with 3 additions and 3 deletions

View File

@@ -254,7 +254,7 @@ class AlbumHomeWidgetService {
Future<void> _refreshAlbumsWidget() async {
// only refresh if widget was synced without issues
if (getAlbumsStatus() == WidgetStatus.syncedAll) return;
if (await countHomeWidgets() == 0) return;
await _refreshWidget(message: "Refreshing from existing album set");
}

View File

@@ -182,7 +182,7 @@ class MemoryHomeWidgetService {
Future<void> _refreshMemoriesWidget() async {
// only refresh if widget was synced without issues
if (getMemoriesStatus() == WidgetStatus.syncedAll) return;
if (await countHomeWidgets() == 0) return;
await _refreshWidget(message: "Refreshing from existing memory set");
}

View File

@@ -256,7 +256,7 @@ class PeopleHomeWidgetService {
Future<void> _refreshPeopleWidget() async {
// only refresh if widget was synced without issues
if (getPeopleStatus() == WidgetStatus.syncedAll) return;
if (await countHomeWidgets() == 0) return;
await _refreshWidget(message: "Refreshing from existing people set");
}