Read iCloud profile before start

This commit is contained in:
SuperKenVery authored and GitHub committed 2024-04-29 11:15:24 +08:00
1 parent 1c5bc23a25
commit 6a8fb1156f
1 file changed
+1
@@ -77,6 +77,7 @@ public struct StartStopButton: View {
private nonisolated func switchProfile(_ isEnabled: Bool) async {
do {
if isEnabled {
try await profile.read()
try await profile.start()
await environments.logClient.connect()
} else {