Add lazy var for whether the fastEnumeration value has actually been set in settings
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Mon, 5 Feb 2024 10:36:04 +0000 (18:36 +0800)
committerClaudio Cambra <claudio.cambra@nextcloud.com>
Wed, 6 Mar 2024 10:46:41 +0000 (18:46 +0800)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderConfig.swift

index 53e4d7890d154548aebff4a1f8b8247c06fff1e3..2e799c4620c2527f85849445fafa4eef3b7c4fef 100644 (file)
@@ -35,4 +35,6 @@ struct FileProviderConfig {
         get { internalConfig[ConfigKey.fastEnumerationEnabled.rawValue] as? Bool ?? true }
         set { internalConfig[ConfigKey.fastEnumerationEnabled.rawValue] = newValue }
     }
+
+    lazy var fastEnumerationSet = internalConfig[ConfigKey.fastEnumerationEnabled.rawValue] != nil
 }