diff --git a/NearbyShare/Util/Helpers.swift b/NearbyShare/Util/Helpers.swift index 7152cef..2b1fb23 100644 --- a/NearbyShare/Util/Helpers.swift +++ b/NearbyShare/Util/Helpers.swift @@ -111,10 +111,10 @@ public func isPlusVersion() -> Bool { public func isFileTransferRestricted() -> Bool { - (!isPlusVersion() && transmissionCount() > 1) + (!isPlusVersion() && incomingTransmissionCount() > 1) } -public func transmissionCount() -> Int { +public func incomingTransmissionCount() -> Int { return UserDefaults.standard.integer(forKey: UserDefaultsKeys.transmissionCount.rawValue) } diff --git a/QuickDrop/AppDelegate.swift b/QuickDrop/AppDelegate.swift index fa9a38d..789ab5f 100644 --- a/QuickDrop/AppDelegate.swift +++ b/QuickDrop/AppDelegate.swift @@ -428,7 +428,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele showCopiedToClipboardAlert() } - let currentCount = transmissionCount() + let currentCount = incomingTransmissionCount() if currentCount == 0 { DispatchQueue.main.asyncAfter(deadline: .now() + 1) { SKStoreReviewController.requestReview() diff --git a/QuickDrop/Util/ErrorAlertHandler.swift b/QuickDrop/Util/ErrorAlertHandler.swift index 30b40a8..0cc7df6 100644 --- a/QuickDrop/Util/ErrorAlertHandler.swift +++ b/QuickDrop/Util/ErrorAlertHandler.swift @@ -84,7 +84,7 @@ class ErrorAlertHandler { let title = String(format: "TransferError".localized(), arguments: [deviceName]) log("Showing alert with title: \"\(title)\" and description: \"\(description)\"") - log("Unsuccessful transmission. Already successful transmissions: \(transmissionCount())") + log("Unsuccessful transmission. Already successful transmissions: \(incomingTransmissionCount())") #if os(macOS) self.isAlertShown = true