From 1441a5e3a2e5eeabcf227259044ca472061bdfb5 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Tue, 6 Feb 2024 14:34:35 +0800 Subject: [PATCH] Make default of fast enumeration enabled method in file provider settings controller to be true Signed-off-by: Claudio Cambra --- src/gui/macOS/fileprovidersettingscontroller_mac.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/macOS/fileprovidersettingscontroller_mac.mm b/src/gui/macOS/fileprovidersettingscontroller_mac.mm index 4a09b7a9f..cd3749df5 100644 --- a/src/gui/macOS/fileprovidersettingscontroller_mac.mm +++ b/src/gui/macOS/fileprovidersettingscontroller_mac.mm @@ -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) -- 2.30.2