mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-11 19:11:10 +00:00
Do not show review on GitHub release
This commit is contained in:
1 parent
d01e1d7c34
commit
026ebc33db
3 files changed
+10
-4
No files matched your search
@@ -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 {
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user