Sync data message when in Offline Mode

This commit is contained in:
yaso 2026-06-25 12:24:30 +02:00
parent 8d78fb6357
commit d722251d50
3 changed files with 15 additions and 8 deletions

View file

@ -72,9 +72,10 @@ class MzansiProfileProvider extends ChangeNotifier {
notifyListeners();
}
Future<void> syncWithMihServerData() async {
await _hiveData.syncProfileDataWithServer();
Future<bool> syncWithMihServerData() async {
bool success = await _hiveData.syncProfileDataWithServer();
loadCachedProfileState();
return success;
}
void triggerRefresh() {