mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-15 00:34:08 +09:00
feat: added a new United widget that visualizes: CPU, GPU, RAM, and disk utilization
This commit is contained in:
@@ -195,6 +195,7 @@ public class GPU: Module {
|
||||
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")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user