fix: corrected the order of the colors in the Network chart after restart (#1080)

This commit is contained in:
Serhiy Mytrovtsiy
2022-09-12 16:58:53 +02:00
parent 9f3d7d7894
commit 064840187a

View File

@@ -85,7 +85,7 @@ public class NetworkChart: WidgetWrapper {
if let downloadColor = self.downloadColor.additional as? NSColor,
let uploadColor = self.uploadColor.additional as? NSColor {
self.chart.colors = [downloadColor, uploadColor]
self.chart.colors = [uploadColor, downloadColor]
}
self.chart.setScale(self.scaleState, self.commonScaleState)
self.chart.reinit(self.historyCount)