From e169a5b56cd305906bcc6d38b64a8e5b10ae96cf Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Thu, 19 Sep 2024 00:55:11 +0800 Subject: [PATCH] Fix hasNext in filesController may never reset to false --- app/lib/controller/files_controller.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/lib/controller/files_controller.dart b/app/lib/controller/files_controller.dart index a9fcf8e4..63c6ca04 100644 --- a/app/lib/controller/files_controller.dart +++ b/app/lib/controller/files_controller.dart @@ -148,6 +148,10 @@ class FilesController { if (hasChange) { // load the synced content to stream unawaited(_reload()); + } else { + _dataStreamController.addWithValue((value) => value.copyWith( + hasNext: false, + )); } } finally { _isSyncing = false;