mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: disabled widgets update for macOS 26 since there is a problem with chronod
This commit is contained in:
@@ -330,10 +330,12 @@ public class Disk: Module {
|
||||
}
|
||||
|
||||
if #available(macOS 11.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")
|
||||
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")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user