Fix if pending file takes too long

This commit is contained in:
Leon Böttger committed 2025-04-04 20:21:17 +02:00
1 parent c0fb5dd303
commit bb86ebc606
7 files changed
+53 -19

No files matched your search

+2 -7
View File
@@ -168,12 +168,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele
plusWindow?.makeKeyAndOrderFront(nil)
plusWindow?.level = .normal
}
func isPlusVersion() -> Bool {
return UserDefaults.standard.bool(forKey: UserDefaultsKeys.plusVersion.rawValue)
}
func transmissionCount() -> Int {
return UserDefaults.standard.integer(forKey: UserDefaultsKeys.transmissionCount.rawValue)
@@ -287,7 +282,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele
private func pressAcceptButton(transferID: String) {
if false || (!isPlusVersion() && transmissionCount() > 0) {
if true || (!isPlusVersion() && transmissionCount() > 0) {
self.continueTransmission(accept: true, transferID: transferID, storeInTemp: true)
log("Showing plus screen...")