Read iCloud profile before start
This commit is contained in:
@@ -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