diff --git a/Kit/Widgets/NetworkChart.swift b/Kit/Widgets/NetworkChart.swift index 34da4247..92b01e78 100644 --- a/Kit/Widgets/NetworkChart.swift +++ b/Kit/Widgets/NetworkChart.swift @@ -205,6 +205,7 @@ public class NetworkChart: WidgetWrapper { bottomLinePath.lineWidth = lineWidth bottomLinePath.stroke() + context.restoreGState() context.saveGState() var underLinePath = topLinePath.copy() as! NSBezierPath diff --git a/Stats/Views/CombinedView.swift b/Stats/Views/CombinedView.swift index a48e3dce..4ea97df9 100644 --- a/Stats/Views/CombinedView.swift +++ b/Stats/Views/CombinedView.swift @@ -120,7 +120,7 @@ internal class CombinedView: NSObject, NSGestureRecognizerDelegate { w += m.menuBar.view.frame.width + self.spacing i += 1 - if self.separator && i < self.activeModules.count { + if self.separator && i < 2 * self.activeModules.count - 1 { let separator = NSView(frame: NSRect(x: w, y: 3, width: 1, height: Constants.Widget.height-6)) separator.wantsLayer = true separator.layer?.backgroundColor = (separator.isDarkMode ? NSColor.black : NSColor.white).cgColor