diff --git a/ModuleKit/Widgets/Sensors.swift b/ModuleKit/Widgets/Sensors.swift index 54b812e8..828b68cb 100644 --- a/ModuleKit/Widgets/Sensors.swift +++ b/ModuleKit/Widgets/Sensors.swift @@ -58,6 +58,7 @@ public class SensorsWidget: Widget { public override func draw(_ dirtyRect: NSRect) { super.draw(dirtyRect) + guard self.values.count != 0 else { self.setWidth(1) return @@ -79,15 +80,27 @@ public class SensorsWidget: Widget { var x: CGFloat = Constants.Widget.margin for i in 0..