paddel setup new verifier

This commit is contained in:
Mark Gregory
2026-09-09 14:40:18 +01:00
parent e802dd8cf8
commit d541f492cf
52 changed files with 176 additions and 5962 deletions
+8 -2
View File
@@ -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 {