Make default of fast enumeration enabled method in file provider settings controller to be true

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-02-06 14:34:35 +08:00
parent 23c1e554d0
commit 1441a5e3a2

View file

@ -378,12 +378,12 @@ bool FileProviderSettingsController::fastEnumerationEnabledForAccount(const QStr
{
const auto xpc = FileProvider::instance()->xpc();
if (!xpc) {
return false;
return true;
}
if (const auto fastEnumerationState = xpc->fastEnumerationStateForExtension(userIdAtHost)) {
return fastEnumerationState->first;
}
return false;
return true;
}
void FileProviderSettingsController::setFastEnumerationEnabledForAccount(const QString &userIdAtHost, const bool setEnabled)