Remove ignoreDeviceSleep && Improve delete button on macOS

This commit is contained in:
世界 committed 2024-02-16 13:41:32 +08:00
1 parent 1f6e99f576
commit bbee434895
11 files changed
+72 -36

No files matched your search

@@ -20,11 +20,11 @@ public enum ProfileUpdateTask {
if updateInterval < minUpdateInterval {
updateInterval = minUpdateInterval
}
timer = Timer(fire: calculateEarliestBeginDate(profiles), interval: updateInterval, repeats: true, block: { _ in
timer = Timer(fire: calculateEarliestBeginDate(profiles), interval: updateInterval, repeats: true) { _ in
Task {
await getAndupdateProfiles()
}
})
}
}
static func calculateEarliestBeginDate(_ profiles: [Profile]) -> Date {