mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: change value type from Double to ColorValue in the BarChart (#441)
This commit is contained in:
@@ -133,7 +133,7 @@ public class GPU: Module {
|
||||
widget.setValue(utilization)
|
||||
widget.setTitle(self.showType ? "\(selectedGPU.type)GPU" : nil)
|
||||
case let widget as LineChart: widget.setValue(utilization)
|
||||
case let widget as BarChart: widget.setValue([utilization])
|
||||
case let widget as BarChart: widget.setValue([[ColorValue(utilization)]])
|
||||
default: break
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user