mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-07 16:38:37 +02:00
[space-flares] resume animations on display_normal
Change the display_normal() function so that rather than being a no-op if we already saved the state as normal, it restarts any animations and redraws the views. The only thing we now do if the state is not previously the same is hide any prompt. This allows this to be used to reanimate the plugin on reactivate.
This commit is contained in:
parent
1b4a60cc5c
commit
2346efabb4
1 changed files with 5 additions and 6 deletions
|
|
@ -1841,12 +1841,11 @@ display_normal (ply_boot_splash_plugin_t *plugin)
|
|||
{
|
||||
pause_views (plugin);
|
||||
if (plugin->state != PLY_BOOT_SPLASH_DISPLAY_NORMAL)
|
||||
{
|
||||
plugin->state = PLY_BOOT_SPLASH_DISPLAY_NORMAL;
|
||||
hide_prompt (plugin);
|
||||
start_animation (plugin);
|
||||
redraw_views (plugin);
|
||||
}
|
||||
hide_prompt (plugin);
|
||||
|
||||
plugin->state = PLY_BOOT_SPLASH_DISPLAY_NORMAL;
|
||||
start_animation (plugin);
|
||||
redraw_views (plugin);
|
||||
unpause_views (plugin);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue