Fix unexpected connect error
This commit is contained in:
@@ -82,7 +82,7 @@ public final class DashboardViewModel: BaseViewModel {
|
|||||||
systemProxyAvailable = status.available
|
systemProxyAvailable = status.available
|
||||||
systemProxyEnabled = status.enabled
|
systemProxyEnabled = status.enabled
|
||||||
} catch {
|
} catch {
|
||||||
alert = AlertState(error: error)
|
NSLog("reloadSystemProxy: \(error)")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -117,9 +117,7 @@ public final class DashboardViewModel: BaseViewModel {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
await MainActor.run {
|
NSLog("checkDeprecatedNotes: \(error)")
|
||||||
alert = AlertState(error: error)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ public struct SidebarView: View {
|
|||||||
ProgressView()
|
ProgressView()
|
||||||
} else if let profile = environments.extensionProfile {
|
} else if let profile = environments.extensionProfile {
|
||||||
sidebarContent(isConnected: profile.status.isConnectedStrict, profile: profile)
|
sidebarContent(isConnected: profile.status.isConnectedStrict, profile: profile)
|
||||||
|
.onReceive(profile.$status) { _ in }
|
||||||
.onChangeCompat(of: profile.status) {
|
.onChangeCompat(of: profile.status) {
|
||||||
if !selection.visible(profile) {
|
if !selection.visible(profile) {
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
|
|||||||
@@ -1,16 +1,43 @@
|
|||||||
all: ios macos macos_standalone tvos
|
build_all: build_ios build_macos build_macos_standalone build_tvos
|
||||||
|
|
||||||
ios:
|
build_ios:
|
||||||
xcodebuild build -scheme SFI -configuration Debug -destination 'generic/platform=iOS' | xcbeautify | grep -A 3 -e "Build Succeeded" -e "BUILD FAILED" -e "❌"
|
xcodebuild build -scheme SFI -configuration Debug -destination 'generic/platform=iOS' | xcbeautify | grep -A 10 -e "Build Succeeded" -e "BUILD FAILED" -e "❌"
|
||||||
|
|
||||||
macos:
|
build_macos:
|
||||||
xcodebuild build -scheme SFM -configuration Debug -destination 'generic/platform=macOS' | xcbeautify | grep -A 3 -e "Build Succeeded" -e "BUILD FAILED" -e "❌"
|
xcodebuild build -scheme SFM -configuration Debug -destination 'generic/platform=macOS' | xcbeautify | grep -A 10 -e "Build Succeeded" -e "BUILD FAILED" -e "❌"
|
||||||
|
|
||||||
macos_standalone:
|
build_macos_standalone:
|
||||||
xcodebuild build -scheme SFM.System -configuration Debug -destination 'generic/platform=macOS' | xcbeautify | grep -A 3 -e "Build Succeeded" -e "BUILD FAILED" -e "❌"
|
xcodebuild build -scheme SFM.System -configuration Debug -destination 'generic/platform=macOS' | xcbeautify | grep -A 10 -e "Build Succeeded" -e "BUILD FAILED" -e "❌"
|
||||||
|
|
||||||
tvos:
|
build_tvos:
|
||||||
xcodebuild build -scheme SFT -configuration Debug -destination 'generic/platform=tvOS' | xcbeautify | grep -A 3 -e "Build Succeeded" -e "BUILD FAILED" -e "❌"
|
xcodebuild build -scheme SFT -configuration Debug -destination 'generic/platform=tvOS' | xcbeautify | grep -A 10 -e "Build Succeeded" -e "BUILD FAILED" -e "❌"
|
||||||
|
|
||||||
|
|
||||||
|
release: release_ios release_macos release_tvos
|
||||||
|
|
||||||
|
release_ios: archive_ios upload_ios
|
||||||
|
|
||||||
|
archive_ios:
|
||||||
|
xcodebuild archive -scheme SFI -configuration Release -destination 'generic/platform=iOS' -archivePath build/SFI.xcarchive -allowProvisioningUpdates | xcbeautify | grep -A 10 -e "Archive Succeeded" -e " ARCHIVE FAILED" -e "❌"
|
||||||
|
|
||||||
|
upload_ios:
|
||||||
|
xcodebuild -exportArchive -archivePath build/SFI.xcarchive -exportOptionsPlist SFI/Upload.plist -allowProvisioningUpdates
|
||||||
|
|
||||||
|
release_maocs: archive_macos upload_macos
|
||||||
|
|
||||||
|
archive_macos:
|
||||||
|
xcodebuild archive -scheme SFM -configuration Release -archivePath build/SFM.xcarchive -allowProvisioningUpdates | xcbeautify | grep -A 10 -e "Archive Succeeded" -e " ARCHIVE FAILED" -e "❌"
|
||||||
|
|
||||||
|
upload_macos:
|
||||||
|
xcodebuild -exportArchive -archivePath build/SFM.xcarchive -exportOptionsPlist SFI/Upload.plist -allowProvisioningUpdates
|
||||||
|
|
||||||
|
release_tvos: archive_tvos upload_tvos
|
||||||
|
|
||||||
|
archive_tvos:
|
||||||
|
xcodebuild archive -scheme SFT -configuration Release -archivePath build/SFT.xcarchive -allowProvisioningUpdates | xcbeautify | grep -A 10 -e "Archive Succeeded" -e " ARCHIVE FAILED" -e "❌"
|
||||||
|
|
||||||
|
upload_tvos:
|
||||||
|
xcodebuild -exportArchive -archivePath "build/SFT.xcarchive" -exportOptionsPlist SFI/Upload.plist -allowProvisioningUpdates
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
swiftformat .
|
swiftformat .
|
||||||
|
|||||||
Reference in New Issue
Block a user