mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 14:56:20 +01:00
Fix dirs deeper than 2 lvs are optimized out
This commit is contained in:
parent
a37697f7be
commit
16285bf0f6
1 changed files with 3 additions and 1 deletions
|
@ -200,7 +200,9 @@ mixin DirPickerMixin<T extends StatefulWidget> on State<T> {
|
|||
/// Fill query results from bloc to our item tree
|
||||
bool _fillResult(LsDirBlocItem root, LsDirBlocSuccess state) {
|
||||
if (root.file.path == state.root.path) {
|
||||
root.children = state.items;
|
||||
if (root.children?.isNotEmpty != true) {
|
||||
root.children = state.items;
|
||||
}
|
||||
return true;
|
||||
} else if (state.root.path.startsWith(root.file.path)) {
|
||||
for (final child in root.children ?? <LsDirBlocItem>[]) {
|
||||
|
|
Loading…
Reference in a new issue