From 6a8fb1156faf7bdebf280e24c998af801f46e58c Mon Sep 17 00:00:00 2001 From: SuperKenVery <39673849+SuperKenVery@users.noreply.github.com> Date: Mon, 29 Apr 2024 11:15:24 +0800 Subject: [PATCH] Read iCloud profile before start --- ApplicationLibrary/Views/Dashboard/StartStopButton.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/ApplicationLibrary/Views/Dashboard/StartStopButton.swift b/ApplicationLibrary/Views/Dashboard/StartStopButton.swift index dd781b9..c3cc5d1 100644 --- a/ApplicationLibrary/Views/Dashboard/StartStopButton.swift +++ b/ApplicationLibrary/Views/Dashboard/StartStopButton.swift @@ -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 {