Use value from config for fastEnumeration when creating enumerator

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-02-05 18:30:41 +08:00
Родитель 534b3a60d7
Коммит a3e1d66707
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -65,7 +65,6 @@ import OSLog
// Since it's not desirable to cancel a long recursive enumeration half-way through, we do the
// fast enumeration by default. We prompt the user on the client side to run a proper, full
// enumeration if they want for safety.
var fastEnumeration = true
lazy var config = FileProviderConfig(domainIdentifier: domain.identifier)
required init(domain: NSFileProviderDomain) {
@ -808,7 +807,7 @@ import OSLog
enumeratedItemIdentifier: containerItemIdentifier,
ncAccount: ncAccount,
ncKit: ncKit,
fastEnumeration: fastEnumeration
fastEnumeration: config.fastEnumerationEnabled
)
}