File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import Foundation
22import OpenClawKit
33
44enum GatewayOnboardingReset {
5+ @MainActor
56 static func reset(
67 appModel: NodeAppModel ,
78 instanceId: String ,
Original file line number Diff line number Diff line change @@ -1017,7 +1017,7 @@ struct OnboardingWizardView: View {
10171017
10181018 private func gatewayProblemPrimaryActionTitle( _ problem: GatewayConnectionProblem ) -> String {
10191019 if problem. suggestsOnboardingReset { return " Scan QR again " }
1020- problem. canTrustRotatedCertificate ? " Trust certificate " : " Retry connection "
1020+ return problem. canTrustRotatedCertificate ? " Trust certificate " : " Retry connection "
10211021 }
10221022
10231023 private func handleGatewayProblemPrimaryAction( _ problem: GatewayConnectionProblem ) async {
Original file line number Diff line number Diff line change @@ -1058,7 +1058,7 @@ struct SettingsTab: View {
10581058
10591059 private func gatewayProblemPrimaryActionTitle( _ problem: GatewayConnectionProblem ) -> String {
10601060 if problem. suggestsOnboardingReset { return " Reset onboarding " }
1061- problem. canTrustRotatedCertificate ? " Trust certificate " : " Retry connection "
1061+ return problem. canTrustRotatedCertificate ? " Trust certificate " : " Retry connection "
10621062 }
10631063
10641064 private func handleGatewayProblemPrimaryAction( _ problem: GatewayConnectionProblem ) async {
You can’t perform that action at this time.
0 commit comments