]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
text: don't draw if not animating
authorRay Strode <rstrode@redhat.com>
Thu, 16 Jun 2016 19:08:04 +0000 (15:08 -0400)
committerRay Strode <rstrode@redhat.com>
Thu, 16 Jun 2016 19:08:04 +0000 (15:08 -0400)
That can cause an unrecoverable crash.

src/plugins/splash/text/plugin.c

index d935461e83b895988016d3b3d2ff8d8fb1a49b94..8260daad1a8d939afe87a0da06815938dbc3e275 100644 (file)
@@ -556,7 +556,9 @@ on_boot_progress (ply_boot_splash_plugin_t *plugin,
                 next_node = ply_list_get_next_node (plugin->views, node);
 
                 ply_text_step_bar_set_percent_done (view->step_bar, percent_done);
-                ply_text_step_bar_draw (view->step_bar);
+
+                if (plugin->is_animating)
+                        ply_text_step_bar_draw (view->step_bar);
 
                 node = next_node;
         }