diff --git a/QuickDrop/AppDelegate.swift b/QuickDrop/AppDelegate.swift index d8c0bdd..ceaaeeb 100644 --- a/QuickDrop/AppDelegate.swift +++ b/QuickDrop/AppDelegate.swift @@ -69,7 +69,12 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele iapManager = IAPManager.sharedInstance iapManager?.startObserving() - log("[AppDelegate] Downloaded directly: \(DistributionDetector.isDirectDistributionEnabled)") + if DistributionDetector.isDirectDistributionEnabled { + log("[AppDelegate] Downloaded from GitHub.") + } + else { + log("[AppDelegate] Downloaded from App Store.") + } // app did not lauch before if !Settings.shared.appLaunchedBefore { diff --git a/QuickDrop/Util/ErrorAlertHandler.swift b/QuickDrop/Util/ErrorAlertHandler.swift index 0991370..98385bd 100644 --- a/QuickDrop/Util/ErrorAlertHandler.swift +++ b/QuickDrop/Util/ErrorAlertHandler.swift @@ -103,8 +103,8 @@ class ErrorAlertHandler { self.isAlertShown = false if result == .alertFirstButtonReturn { - log("Sending logging string") - sendLoggingString() + //log("Sending logging string") + //sendLoggingString() } #else showAlert(title: title, message: description) diff --git a/QuickDrop/ViewModel/ReceiveModel.swift b/QuickDrop/ViewModel/ReceiveModel.swift index 6639743..ad96931 100644 --- a/QuickDrop/ViewModel/ReceiveModel.swift +++ b/QuickDrop/ViewModel/ReceiveModel.swift @@ -214,7 +214,8 @@ class ReceiveModel: ObservableObject, InboundAppDelegate { let currentCount = Settings.shared.incomingTransmissionCount #if os(macOS) - if currentCount == 0 { + // If distributed directly, do not request review here as it does not work + if currentCount == 0 && !DistributionDetector.isDirectDistributionEnabled { DispatchQueue.main.asyncAfter(deadline: .now() + 1) { SKStoreReviewController.requestReview() }