From 811b991fcd2b869aca0cf68b4f3402cdac3fa90e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20B=C3=B6ttger?= Date: Thu, 26 Feb 2026 20:51:01 +0100 Subject: [PATCH] Fix startup sequence --- .../xcshareddata/swiftpm/Package.resolved | 4 ++-- QuickDrop/AppDelegate.swift | 14 +++++++------- QuickDrop/View/UserManual/TutorialView.swift | 1 + 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/QuickDrop.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/QuickDrop.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 080d3a0..bd9d9b3 100644 --- a/QuickDrop.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/QuickDrop.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -52,7 +52,7 @@ "location" : "https://github.com/leonboe1/LUI.git", "state" : { "branch" : "main", - "revision" : "b1be835c12befddc3c5f678837a766d51db1bdc5" + "revision" : "488af802e61ee2929f5dc4e21c4613d3f5402aca" } }, { @@ -124,7 +124,7 @@ "location" : "https://github.com/siteline/swiftui-introspect", "state" : { "branch" : "main", - "revision" : "379cbeb697ef528b24c56c59f77a8cfc394ae793" + "revision" : "fe758545cf980ab1085779d4a321a50d33b00f61" } }, { diff --git a/QuickDrop/AppDelegate.swift b/QuickDrop/AppDelegate.swift index ec8c82b..56ddad5 100644 --- a/QuickDrop/AppDelegate.swift +++ b/QuickDrop/AppDelegate.swift @@ -87,13 +87,6 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele if !Settings.sharedInstance.isEligibleForIap { log("[AppDelegate] Granting QuickDrop+ for old user") UserDefaults.standard.set(true, forKey: Settings.UserDefaultsKeys.plusVersionLegacy.rawValue) - } else { - if !fullVersion() { - log("[AppDelegate] New user - QuickDrop+ not available") - } - else { - log("[AppDelegate] QuickDrop+ available") - } } #endif @@ -104,6 +97,13 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele } LUIInit(configuration: configuration) + + if !fullVersion() { + log("[AppDelegate] New user - QuickDrop+ not available") + } + else { + log("[AppDelegate] QuickDrop+ available") + } UNUserNotificationCenter.current().delegate = self diff --git a/QuickDrop/View/UserManual/TutorialView.swift b/QuickDrop/View/UserManual/TutorialView.swift index 1310150..9c17c66 100644 --- a/QuickDrop/View/UserManual/TutorialView.swift +++ b/QuickDrop/View/UserManual/TutorialView.swift @@ -71,6 +71,7 @@ struct TutorialView: View { #if DEBUG Button { + IAPManager.sharedInstance.plusVersionState = false Settings.sharedInstance.deleteAllUserDefaults() } label: { Text("ResetAllSettings")