mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: unlocked widgets updates since the chronod was fixed in macOS 26.1 (#2733)
This commit is contained in:
@@ -330,12 +330,10 @@ public class Disk: Module {
|
||||
}
|
||||
|
||||
if #available(macOS 11.0, *) {
|
||||
if #unavailable(macOS 26.0) {
|
||||
guard let blobData = try? JSONEncoder().encode(d) else { return }
|
||||
self.userDefaults?.set(blobData, forKey: "Disk@CapacityReader")
|
||||
WidgetCenter.shared.reloadTimelines(ofKind: Disk_entry.kind)
|
||||
WidgetCenter.shared.reloadTimelines(ofKind: "UnitedWidget")
|
||||
}
|
||||
guard let blobData = try? JSONEncoder().encode(d) else { return }
|
||||
self.userDefaults?.set(blobData, forKey: "Disk@CapacityReader")
|
||||
WidgetCenter.shared.reloadTimelines(ofKind: Disk_entry.kind)
|
||||
WidgetCenter.shared.reloadTimelines(ofKind: "UnitedWidget")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user