feat: updated GPU portal view

This commit is contained in:
Serhiy Mytrovtsiy
2024-01-23 19:12:14 +01:00
parent 7ed9b9f4d3
commit b392a9732c
3 changed files with 85 additions and 29 deletions

View File

@@ -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