mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 04:18:01 +02:00
two-step: don't update progress when idle
We've already reach a state where we aren't drawing anymore, etc, so don't update progress and potentially fire off animations that won't be seen.
This commit is contained in:
parent
6ccedf7b6e
commit
b3548ebaf7
1 changed files with 3 additions and 0 deletions
|
|
@ -1067,6 +1067,9 @@ on_boot_progress (ply_boot_splash_plugin_t *plugin,
|
|||
if (plugin->state != PLY_BOOT_SPLASH_DISPLAY_NORMAL)
|
||||
return;
|
||||
|
||||
if (plugin->is_idle)
|
||||
return;
|
||||
|
||||
if (percent_done >= SHOW_ANIMATION_PERCENT)
|
||||
{
|
||||
if (plugin->stop_trigger == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue