mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: updated GPU portal view
This commit is contained in:
@@ -85,7 +85,7 @@ public class GPU: Module {
|
||||
public init() {
|
||||
self.popupView = Popup()
|
||||
self.settingsView = Settings("GPU")
|
||||
self.portalView = Portal("GPU")
|
||||
self.portalView = Portal(.GPU)
|
||||
self.notificationsView = Notifications(.GPU)
|
||||
|
||||
super.init(
|
||||
@@ -139,7 +139,7 @@ public class GPU: Module {
|
||||
return
|
||||
}
|
||||
|
||||
self.portalView.loadCallback(selectedGPU)
|
||||
self.portalView.callback(selectedGPU)
|
||||
self.notificationsView.usageCallback(utilization)
|
||||
|
||||
self.menuBar.widgets.filter{ $0.isActive }.forEach { (w: Widget) in
|
||||
|
||||
Reference in New Issue
Block a user