mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: renamed Color and Widget to SColor and SWidget to be compatible with SwiftUI
This commit is contained in:
@@ -120,7 +120,7 @@ public class Sensors: Module {
|
||||
self.portalView.usageCallback(value.sensors)
|
||||
self.notificationsView.usageCallback(value.sensors)
|
||||
|
||||
self.menuBar.widgets.filter{ $0.isActive }.forEach { (w: Widget) in
|
||||
self.menuBar.widgets.filter{ $0.isActive }.forEach { (w: SWidget) in
|
||||
switch w.item {
|
||||
case let widget as StackWidget: widget.setValues(list)
|
||||
case let widget as BarChart: widget.setValue(flatList)
|
||||
|
||||
Reference in New Issue
Block a user