From a7bec4685318ba7c68f927ef9cd153946314b473 Mon Sep 17 00:00:00 2001 From: Lukas Pistrol Date: Fri, 4 Oct 2024 14:30:39 +0200 Subject: [PATCH] fix minor issue with initialize screen --- TimeMachineStatus/Views/InitializeView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TimeMachineStatus/Views/InitializeView.swift b/TimeMachineStatus/Views/InitializeView.swift index 3814122..0d944bc 100644 --- a/TimeMachineStatus/Views/InitializeView.swift +++ b/TimeMachineStatus/Views/InitializeView.swift @@ -69,7 +69,7 @@ struct InitializeView: View { .padding(.top, -26) .frame(width: 300) .backgroundVisualEffect(.hudWindow) - .task { + .task(id: utility.canReadPreferences) { if utility.canReadPreferences { try? await Task.sleep(for: .seconds(1)) dismiss()