Refactoring UserDefaults

This commit is contained in:
Leon Böttger committed 2025-09-09 11:08:13 +02:00
1 parent 943414db58
commit 11afc232ab
12 files changed
+159 -79

No files matched your search

@@ -524,7 +524,7 @@ class InboundNearbyConnection: NearbyConnection {
func checkIfCanProceed(metadata: TransferMetadata) {
let acceptAutomatically = isAuthenticated || UserDefaults.standard.bool(forKey: UserDefaultsKeys.automaticallyAcceptFiles.rawValue)
let acceptAutomatically = isAuthenticated || Settings.shared.automaticallyAcceptFiles
DispatchQueue.main.async {
self.delegate?.obtainUserConsent(transfer: metadata, device: self.remoteDeviceInfo!, connection: self, acceptAutomatically: acceptAutomatically)