mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
Improve follow updates. Close #235
This commit is contained in:
@@ -703,8 +703,9 @@ abstract class FollowUpdatesService {
|
|||||||
if (_isInitialized) return;
|
if (_isInitialized) return;
|
||||||
_isInitialized = true;
|
_isInitialized = true;
|
||||||
_check();
|
_check();
|
||||||
|
DataSync().addListener(updateFollowUpdatesUI);
|
||||||
// A short interval will not affect the performance since every comic has a check time.
|
// A short interval will not affect the performance since every comic has a check time.
|
||||||
Timer.periodic(const Duration(minutes: 5), (timer) {
|
Timer.periodic(const Duration(minutes: 10), (timer) {
|
||||||
_check();
|
_check();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user