feat: unlocked widgets updates since the chronod was fixed in macOS 26.1 (#2733)

This commit is contained in:
Serhiy Mytrovtsiy
2025-11-13 17:37:46 +01:00
parent f2c87a7ae2
commit cb744f8e99
8 changed files with 23 additions and 34 deletions

View File

@@ -326,11 +326,9 @@ public class Network: Module {
}
if #available(macOS 11.0, *) {
if #unavailable(macOS 26.0) {
guard let blobData = try? JSONEncoder().encode(raw) else { return }
self.userDefaults?.set(blobData, forKey: "Network@UsageReader")
WidgetCenter.shared.reloadTimelines(ofKind: Network_entry.kind)
}
guard let blobData = try? JSONEncoder().encode(raw) else { return }
self.userDefaults?.set(blobData, forKey: "Network@UsageReader")
WidgetCenter.shared.reloadTimelines(ofKind: Network_entry.kind)
}
}