mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-19 04:08:48 +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 {
|
||||
running: activePlayer?.playbackState == MprisPlaybackState.Playing
|
||||
interval: 1000
|
||||
interval: Config.options.resources.updateInterval
|
||||
repeat: true
|
||||
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
|
||||
interval: 1000
|
||||
interval: Config.options.resources.updateInterval
|
||||
repeat: true
|
||||
onTriggered: {
|
||||
playerController.player.positionChanged()
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ MouseArea {
|
|||
|
||||
Timer {
|
||||
running: activePlayer?.playbackState == MprisPlaybackState.Playing
|
||||
interval: 1000
|
||||
interval: Config.options.resources.updateInterval
|
||||
repeat: true
|
||||
onTriggered: activePlayer.positionChanged()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue