mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 06:46:22 +01:00
Fix running StartupSync before finishing query
This commit is contained in:
parent
7f50bcaa58
commit
3308e91133
1 changed files with 3 additions and 2 deletions
|
@ -382,9 +382,10 @@ class _HomePhotosState extends State<HomePhotos>
|
|||
void _onStateChange(BuildContext context, ScanAccountDirBlocState state) {
|
||||
if (state is ScanAccountDirBlocInit) {
|
||||
itemStreamListItems = [];
|
||||
} else if (state is ScanAccountDirBlocSuccess ||
|
||||
state is ScanAccountDirBlocLoading) {
|
||||
} else if (state is ScanAccountDirBlocSuccess) {
|
||||
_transformItems(state.files, isPostSuccess: true);
|
||||
} else if (state is ScanAccountDirBlocLoading) {
|
||||
_transformItems(state.files);
|
||||
} else if (state is ScanAccountDirBlocFailure) {
|
||||
_isScrollbarVisible = true;
|
||||
_transformItems(state.files);
|
||||
|
|
Loading…
Reference in a new issue