mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 13:38:45 +02:00
throbber: don't report successful load when no assets
Currently, the throbber will report a successful load when zero assets
are loaded. Change it so that zero assets do not result in a
successfully loaded throbber.
This is similar to commit 3d7f4fe441 but
for throbber objects instead of animation objects.
This commit is contained in:
parent
b0863e73e6
commit
f2d378fe1b
1 changed files with 1 additions and 1 deletions
|
|
@ -235,7 +235,7 @@ ply_throbber_add_frames (ply_throbber_t *throbber)
|
|||
|
||||
number_of_entries = scandir (throbber->image_dir, &entries, NULL, versionsort);
|
||||
|
||||
if (number_of_entries < 0)
|
||||
if (number_of_entries <= 0)
|
||||
return false;
|
||||
|
||||
load_finished = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue