Skip to content

Commit

Permalink
fix(graph): right disable secondary chart
Browse files Browse the repository at this point in the history
fix #56
  • Loading branch information
orblazer committed Mar 29, 2024
1 parent 1050428 commit 8fa1fb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/contents/ui/components/graph/base/TwoSensorsGraph.qml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RMBaseGraph.BaseSensorGraph {
// Graph properties
property var colors: [theme.highlightColor, theme.textColor]
property var enableHistory: plasmoid.configuration.enableHistory
property alias secondChartVisible: secondChart.visible
property bool secondChartVisible: true

// Bind properties changes
onUplimitsChanged: {
Expand Down Expand Up @@ -56,7 +56,7 @@ RMBaseGraph.BaseSensorGraph {
Charts.LineChart {
id: firstChart
anchors.fill: parent
visible: enableHistory
visible: enableHistory && secondChartVisible

direction: Charts.XYChart.ZeroAtEnd
fillOpacity: plasmoid.configuration.graphFillOpacity / 100
Expand Down

0 comments on commit 8fa1fb6

Please sign in to comment.