Fix hasNext in filesController may never reset to false

This commit is contained in:
Ming Ming 2024-09-19 00:55:11 +08:00
parent a37175d92a
commit e169a5b56c

View file

@ -148,6 +148,10 @@ class FilesController {
if (hasChange) { if (hasChange) {
// load the synced content to stream // load the synced content to stream
unawaited(_reload()); unawaited(_reload());
} else {
_dataStreamController.addWithValue((value) => value.copyWith(
hasNext: false,
));
} }
} finally { } finally {
_isSyncing = false; _isSyncing = false;