paddel setup new verifier
This commit is contained in:
@@ -6,6 +6,7 @@ struct ContentView: View {
|
||||
@EnvironmentObject private var automation: BackgroundSyncCoordinator
|
||||
@EnvironmentObject private var licensing: LicensingManager
|
||||
@Environment(\.openWindow) private var openWindow
|
||||
@Environment(\.scenePhase) private var scenePhase
|
||||
@State private var selectedJob: SyncJob?
|
||||
@State private var section: AppSection = .jobs
|
||||
@State private var showingNewJob = false
|
||||
@@ -43,12 +44,17 @@ struct ContentView: View {
|
||||
withAnimation(.easeOut(duration: 0.28)) { showingSplash = false }
|
||||
}
|
||||
.task {
|
||||
await licensing.revalidateIfNeeded()
|
||||
while !Task.isCancelled {
|
||||
try? await Task.sleep(for: .seconds(900))
|
||||
try? await Task.sleep(for: .seconds(LicensingManager.remoteValidationInterval))
|
||||
if Task.isCancelled { return }
|
||||
licensing.refresh()
|
||||
await licensing.revalidateIfNeeded()
|
||||
}
|
||||
}
|
||||
.onChange(of: scenePhase) { _, phase in
|
||||
guard phase == .active else { return }
|
||||
Task { await licensing.revalidateIfNeeded(force: true) }
|
||||
}
|
||||
}
|
||||
|
||||
private var mainContent: some View {
|
||||
|
||||
Reference in New Issue
Block a user