mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-19 21:06:10 +00:00
Refactor UIAlertController Logic
This commit is contained in:
1 parent
21f0f865b6
commit
4e73fced74
8 files changed
+63
-42
No files matched your search
@@ -589,6 +589,13 @@ class InboundNearbyConnection: NearbyConnection {
|
||||
if storeInTemp {
|
||||
log("[InboundNearbyConnection \(self.id)] File transfer restrictions detected, storing files in temporary directory.")
|
||||
delegate?.showPlusScreen()
|
||||
|
||||
#if os(iOS)
|
||||
// Continue transfer for macOS only
|
||||
// On iOS, the transfer should be cancelled by user
|
||||
rejectTransfer()
|
||||
return
|
||||
#endif
|
||||
}
|
||||
|
||||
do {
|
||||
|
||||
@@ -111,14 +111,8 @@ extension String {
|
||||
|
||||
|
||||
public func fullVersion() -> Bool {
|
||||
|
||||
#if os(macOS)
|
||||
// Enable full functionality if app distributed directly
|
||||
return Settings.shared.gotPlus || DistributionDetector.isDirectDistributionEnabled
|
||||
#else
|
||||
// iOS
|
||||
return true
|
||||
#endif
|
||||
return Settings.shared.gotPlus || DistributionDetector.isDirectDistributionEnabled
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user