quickshell: stop the vinyl animation rather than pausing it
This commit is contained in:
parent
ccc6af0496
commit
389d7a5d65
1 changed files with 7 additions and 6 deletions
|
|
@ -6319,16 +6319,17 @@ in
|
|||
// MPRIS player is always present, so
|
||||
// this card — and this animation —
|
||||
// never went away.
|
||||
// paused (not stopped) still applies
|
||||
// while the popup is open, so play/
|
||||
// pause resumes at the current angle
|
||||
// instead of snapping back to 0.
|
||||
// Stopped rather than paused: `paused`
|
||||
// on a non-running animation warns,
|
||||
// and the resume-at-current-angle it
|
||||
// bought is not worth a permanently
|
||||
// live animation. The disc restarts
|
||||
// from 0 after a play/pause.
|
||||
NumberAnimation on rotation {
|
||||
from: 0; to: 360
|
||||
duration: 8000
|
||||
loops: Animation.Infinite
|
||||
running: calPopup.open
|
||||
paused: !vinyl.spinning
|
||||
running: calPopup.open && vinyl.spinning
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue