mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
media: progress update interval follows resources
This commit is contained in:
parent
47725ea4b5
commit
fc0b069ad2
3 changed files with 4 additions and 4 deletions
|
|
@ -21,7 +21,7 @@ Item {
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
running: activePlayer?.playbackState == MprisPlaybackState.Playing
|
running: activePlayer?.playbackState == MprisPlaybackState.Playing
|
||||||
interval: 1000
|
interval: Config.options.resources.updateInterval
|
||||||
repeat: true
|
repeat: true
|
||||||
onTriggered: activePlayer.positionChanged()
|
onTriggered: activePlayer.positionChanged()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -46,9 +46,9 @@ Item { // Player instance
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Timer { // Force update for prevision
|
Timer { // Force update for revision
|
||||||
running: playerController.player?.playbackState == MprisPlaybackState.Playing
|
running: playerController.player?.playbackState == MprisPlaybackState.Playing
|
||||||
interval: 1000
|
interval: Config.options.resources.updateInterval
|
||||||
repeat: true
|
repeat: true
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
playerController.player.positionChanged()
|
playerController.player.positionChanged()
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ MouseArea {
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
running: activePlayer?.playbackState == MprisPlaybackState.Playing
|
running: activePlayer?.playbackState == MprisPlaybackState.Playing
|
||||||
interval: 1000
|
interval: Config.options.resources.updateInterval
|
||||||
repeat: true
|
repeat: true
|
||||||
onTriggered: activePlayer.positionChanged()
|
onTriggered: activePlayer.positionChanged()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue