]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
two-step: Fix progress-bar not hiding when it should
authorHans de Goede <hdegoede@redhat.com>
Thu, 26 Sep 2019 08:37:07 +0000 (10:37 +0200)
committerHans de Goede <hdegoede@redhat.com>
Fri, 27 Sep 2019 07:36:51 +0000 (09:36 +0200)
Before this commit we were not hiding the progress-bar when starting the
end-animation nor when stop_animation gets called. This adds the 2 missing
hide calls, making the handling of the progress-bar identical to that of
the progress-animation.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
src/plugins/splash/two-step/plugin.c

index dd64c73abee77e58beca49d18fef933fdad1889c..051694b487ab338a6284eebca704d21211179fb0 100644 (file)
@@ -771,6 +771,7 @@ view_start_end_animation (view_t        *view,
         unsigned long screen_width, screen_height;
         long x, y, width, height;
 
+        ply_progress_bar_hide (view->progress_bar);
         if (view->progress_animation != NULL)
                 ply_progress_animation_hide (view->progress_animation);
 
@@ -1305,6 +1306,7 @@ stop_animation (ply_boot_splash_plugin_t *plugin,
                 view = ply_list_node_get_data (node);
                 next_node = ply_list_get_next_node (plugin->views, node);
 
+                ply_progress_bar_hide (view->progress_bar);
                 if (view->progress_animation != NULL) {
                         ply_trace ("hiding progress animation");
                         ply_progress_animation_hide (view->progress_animation);