mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-09 03:38:09 +02:00
[animation] Make ply_animation_start idempotent
This commit is contained in:
parent
1b10da8890
commit
1cf529bd9b
1 changed files with 3 additions and 0 deletions
|
|
@ -301,6 +301,9 @@ ply_animation_start (ply_animation_t *animation,
|
|||
{
|
||||
assert (animation != NULL);
|
||||
|
||||
if (!animation->is_stopped)
|
||||
return true;
|
||||
|
||||
animation->loop = ply_event_loop_get_default ();
|
||||
animation->display = display;
|
||||
animation->stop_trigger = stop_trigger;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue