mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-11 19:11:10 +00:00
Refactoring
This commit is contained in:
1 parent
cce84e9460
commit
ffdf667cc6
13 files changed
+41
-40
No files matched your search
@@ -247,7 +247,7 @@ class ReceiveModel: ObservableObject, InboundAppDelegate {
|
||||
|
||||
#endif
|
||||
|
||||
let currentCount = Settings.shared.incomingTransmissionCount
|
||||
let currentCount = Settings.sharedInstance.incomingTransmissionCount
|
||||
|
||||
#if os(macOS)
|
||||
|
||||
@@ -296,13 +296,13 @@ class ReceiveModel: ObservableObject, InboundAppDelegate {
|
||||
}
|
||||
|
||||
// Show received files if wanted
|
||||
if Settings.shared.openFinderAfterReceiving {
|
||||
if Settings.sharedInstance.openFinderAfterReceiving {
|
||||
self.toastActions?.openFilesAction()
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Settings.shared.incomingTransmissionCount = currentCount + 1
|
||||
Settings.sharedInstance.incomingTransmissionCount = currentCount + 1
|
||||
log("[ReceiveModel] Successful transmission. Current count: \(currentCount)")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user