Merge branch 'two-step-end-animation-fix' into 'master'

two-step: Do not jump to end-animation on halt/reboot if it is disabled

See merge request plymouth/plymouth!100
This commit is contained in:
Hans de Goede 2020-03-24 18:29:37 +00:00
commit f7358f1535

View file

@ -1340,8 +1340,9 @@ start_progress_animation (ply_boot_splash_plugin_t *plugin)
* 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);
}