If the end-animation is disabled then directly becoming idle on halt /
reboot leads to no animation at all being shown.
Fix this by not jumping to the end-animation on halt/reboot if the
end-animation is disabled.
Fixes: 50c619ed41ca ("two-step: Add UseEndAnimation setting")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* but it's normally really fast, so just jump to
* the end animation
*/
- if (plugin->mode == PLY_BOOT_SPLASH_MODE_SHUTDOWN ||
- plugin->mode == PLY_BOOT_SPLASH_MODE_REBOOT)
+ if (plugin->mode_settings[plugin->mode].use_end_animation &&
+ (plugin->mode == PLY_BOOT_SPLASH_MODE_SHUTDOWN ||
+ plugin->mode == PLY_BOOT_SPLASH_MODE_REBOOT))
become_idle (plugin, NULL);
}