mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-27 06:57:59 +01:00
fix #1207, exclude a given folder if the user excluded it specifically
This commit is contained in:
parent
0b3b19bcd5
commit
62502f3722
1 changed files with 2 additions and 0 deletions
|
@ -23,6 +23,8 @@ fun String.shouldFolderBeVisible(excludedPaths: MutableSet<String>, includedPath
|
||||||
false
|
false
|
||||||
} else if (!showHidden && file.containsNoMedia()) {
|
} else if (!showHidden && file.containsNoMedia()) {
|
||||||
false
|
false
|
||||||
|
} else if (excludedPaths.contains(this) && !includedPaths.contains(this)) {
|
||||||
|
false
|
||||||
} else if (isThisOrParentIncluded(includedPaths)) {
|
} else if (isThisOrParentIncluded(includedPaths)) {
|
||||||
true
|
true
|
||||||
} else if (isThisOrParentExcluded(excludedPaths)) {
|
} else if (isThisOrParentExcluded(excludedPaths)) {
|
||||||
|
|
Loading…
Reference in a new issue