fix: reverted enabling macOS widget updates since there is still a problem with chronod (#2733)

This commit is contained in:
Serhiy Mytrovtsiy
2025-11-14 11:12:06 +01:00
parent fcb4071c47
commit 15075bc7f1
9 changed files with 35 additions and 25 deletions

View File

@@ -192,10 +192,12 @@ public class GPU: Module {
}
if #available(macOS 11.0, *) {
guard let blobData = try? JSONEncoder().encode(selectedGPU) else { return }
self.userDefaults?.set(blobData, forKey: "GPU@InfoReader")
WidgetCenter.shared.reloadTimelines(ofKind: GPU_entry.kind)
WidgetCenter.shared.reloadTimelines(ofKind: "UnitedWidget")
if #unavailable(macOS 26.0) {
guard let blobData = try? JSONEncoder().encode(selectedGPU) else { return }
self.userDefaults?.set(blobData, forKey: "GPU@InfoReader")
WidgetCenter.shared.reloadTimelines(ofKind: GPU_entry.kind)
WidgetCenter.shared.reloadTimelines(ofKind: "UnitedWidget")
}
}
}
}