mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-09 02:28:19 +02:00
animation: don't report success when no frames were added
Currently, the animation object will report success when assets are *found* in
the directory. When loading those assets, code will apply more checks to
determine if the assets are meant for the animation.
In case none of them are, we'll end up not adding any frames, so we
should not report a successful load.
This is like commit 741b545868 but for
animation objects instead of throbber objects.
This commit is contained in:
parent
741b545868
commit
2ef12342b9
1 changed files with 1 additions and 1 deletions
|
|
@ -287,7 +287,7 @@ out:
|
|||
}
|
||||
free (entries);
|
||||
|
||||
return load_finished;
|
||||
return (ply_array_get_size (animation->frames) > 0);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue