minor concurrency improvements

This commit is contained in:
neon443
2025-05-29 18:32:54 +01:00
parent 69047010d7
commit 2ef000458f
5 changed files with 16 additions and 13 deletions

View File

@@ -76,7 +76,7 @@ class SettingsViewModel: ObservableObject {
self.device = getDevice()
if load {
loadSettings()
Task {
Task.detached {
let requestResult = await requestNotifs()
await MainActor.run {
self.notifsGranted = requestResult