Read iCloud profile before start

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