]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
two-step: don't update progress when idle
authorRay Strode <rstrode@redhat.com>
Thu, 1 Nov 2012 21:16:07 +0000 (17:16 -0400)
committerRay Strode <rstrode@redhat.com>
Thu, 1 Nov 2012 21:16:07 +0000 (17:16 -0400)
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.

src/plugins/splash/two-step/plugin.c

index 2998beb73675359832a4088931db76d7a4b4154b..541a108dce3db7b1fa060339df864ebad8264d8f 100644 (file)
@@ -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)