dashboard: gate network sparkline timers on visibility
This commit is contained in:
parent
4b18073e5c
commit
c4239001f2
1 changed files with 2 additions and 2 deletions
|
|
@ -836,7 +836,7 @@ Item {
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
interval: Config.dashboard.resourceUpdateInterval
|
interval: Config.dashboard.resourceUpdateInterval
|
||||||
running: true
|
running: networkCard.visible
|
||||||
repeat: true
|
repeat: true
|
||||||
onTriggered: sparklineCanvas._tickCount++
|
onTriggered: sparklineCanvas._tickCount++
|
||||||
}
|
}
|
||||||
|
|
@ -846,7 +846,7 @@ Item {
|
||||||
to: 1
|
to: 1
|
||||||
duration: Config.dashboard.resourceUpdateInterval
|
duration: Config.dashboard.resourceUpdateInterval
|
||||||
loops: Animation.Infinite
|
loops: Animation.Infinite
|
||||||
running: true
|
running: networkCard.visible
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on smoothMax {
|
Behavior on smoothMax {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue