feat: decrease time for force refresh of patches.

This commit is contained in:
Aunali321 2022-10-17 00:32:45 +05:30
parent 9de063aced
commit f5ebfc92fc

View file

@ -179,7 +179,7 @@ class HomeViewModel extends BaseViewModel {
Future<void> forceRefresh(BuildContext context) async {
await Future.delayed(const Duration(seconds: 1));
if (_lastUpdate == null ||
_lastUpdate!.difference(DateTime.now()).inSeconds > 60) {
_lastUpdate!.difference(DateTime.now()).inSeconds > 2) {
_managerAPI.clearAllData();
}
initialize(context);