Skip to content

Commit bca8ba5

Browse files
authored
fix: added missing NetworkChart restoreGState & combinedView separators (#2444)
1 parent 5effa64 commit bca8ba5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Kit/Widgets/NetworkChart.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ public class NetworkChart: WidgetWrapper {
205205
bottomLinePath.lineWidth = lineWidth
206206
bottomLinePath.stroke()
207207

208+
context.restoreGState()
208209
context.saveGState()
209210

210211
var underLinePath = topLinePath.copy() as! NSBezierPath

Stats/Views/CombinedView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ internal class CombinedView: NSObject, NSGestureRecognizerDelegate {
120120
w += m.menuBar.view.frame.width + self.spacing
121121
i += 1
122122

123-
if self.separator && i < self.activeModules.count {
123+
if self.separator && i < 2 * self.activeModules.count - 1 {
124124
let separator = NSView(frame: NSRect(x: w, y: 3, width: 1, height: Constants.Widget.height-6))
125125
separator.wantsLayer = true
126126
separator.layer?.backgroundColor = (separator.isDarkMode ? NSColor.black : NSColor.white).cgColor

0 commit comments

Comments
 (0)