mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 06:46:22 +01:00
Fix includeRelativeRoots and includeRelativeDirs not working in queryFileDescriptors when set together
This commit is contained in:
parent
57c438b7f1
commit
da00a4f3ad
1 changed files with 6 additions and 0 deletions
|
@ -456,12 +456,18 @@ extension SqliteDbFileExtension on SqliteDb {
|
||||||
for (final r in includeRelativeRoots) {
|
for (final r in includeRelativeRoots) {
|
||||||
q.byOrRelativePathPattern("$r/%");
|
q.byOrRelativePathPattern("$r/%");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
if (dirIds != null) {
|
if (dirIds != null) {
|
||||||
for (final i in dirIds) {
|
for (final i in dirIds) {
|
||||||
q.byOrDirRowId(i);
|
q.byOrDirRowId(i);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (dirIds != null) {
|
||||||
|
for (final i in dirIds) {
|
||||||
|
q.byOrDirRowId(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (location != null) {
|
if (location != null) {
|
||||||
q.byLocation(location);
|
q.byLocation(location);
|
||||||
|
|
Loading…
Reference in a new issue