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
|
// MPRIS player is always present, so
|
||||||
// this card — and this animation —
|
// this card — and this animation —
|
||||||
// never went away.
|
// never went away.
|
||||||
// paused (not stopped) still applies
|
// Stopped rather than paused: `paused`
|
||||||
// while the popup is open, so play/
|
// on a non-running animation warns,
|
||||||
// pause resumes at the current angle
|
// and the resume-at-current-angle it
|
||||||
// instead of snapping back to 0.
|
// bought is not worth a permanently
|
||||||
|
// live animation. The disc restarts
|
||||||
|
// from 0 after a play/pause.
|
||||||
NumberAnimation on rotation {
|
NumberAnimation on rotation {
|
||||||
from: 0; to: 360
|
from: 0; to: 360
|
||||||
duration: 8000
|
duration: 8000
|
||||||
loops: Animation.Infinite
|
loops: Animation.Infinite
|
||||||
running: calPopup.open
|
running: calPopup.open && vinyl.spinning
|
||||||
paused: !vinyl.spinning
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue