mirror of
https://github.com/madari-media/madari-oss.git
synced 2026-04-21 15:11:57 +00:00
fix: efficient refresh to avoid server problem
Some checks are pending
Build and Deploy / build_windows (push) Waiting to run
Build and Deploy / build_android (push) Waiting to run
Build and Deploy / build_android_tv (push) Waiting to run
Build and Deploy / build_ipa (push) Waiting to run
Build and Deploy / build_linux (push) Waiting to run
Build and Deploy / build_macos (push) Waiting to run
Some checks are pending
Build and Deploy / build_windows (push) Waiting to run
Build and Deploy / build_android (push) Waiting to run
Build and Deploy / build_android_tv (push) Waiting to run
Build and Deploy / build_ipa (push) Waiting to run
Build and Deploy / build_linux (push) Waiting to run
Build and Deploy / build_macos (push) Waiting to run
This commit is contained in:
parent
a346b9aa3a
commit
506620bf23
1 changed files with 4 additions and 2 deletions
|
|
@ -51,8 +51,10 @@ class TraktContainerState extends State<TraktContainer> {
|
||||||
_steam = TraktService.instance?.refetchKey.stream.listen((item) {
|
_steam = TraktService.instance?.refetchKey.stream.listen((item) {
|
||||||
if (item.contains(widget.loadId)) {
|
if (item.contains(widget.loadId)) {
|
||||||
_logger.info("refreshing widget ${widget.loadId}");
|
_logger.info("refreshing widget ${widget.loadId}");
|
||||||
_cachedItems = [];
|
Future.delayed(
|
||||||
refresh();
|
const Duration(seconds: 1),
|
||||||
|
refresh,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue