]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[throbgress] resume animations on display_normal
authorScott James Remnant <scott@ubuntu.com>
Thu, 18 Mar 2010 21:01:07 +0000 (21:01 +0000)
committerRay Strode <rstrode@redhat.com>
Mon, 22 Mar 2010 03:23:39 +0000 (23:23 -0400)
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.

src/plugins/splash/throbgress/plugin.c

index 02b334df35c61077cd4f5645928831dfed72fac9..03b08cb6483f426ce02b4376df4846624825c510 100644 (file)
@@ -820,12 +820,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);
 }