Sync data message when in Offline Mode
This commit is contained in:
parent
8d78fb6357
commit
d722251d50
3 changed files with 15 additions and 8 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue