Read iCloud profile before start
This commit is contained in:
1 parent
1c5bc23a25
commit
6a8fb1156f
1 file changed
+1
@@ -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 {
|
||||||
|
|||||||
Reference in new issue
Block a user