summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2014-01-10 11:47:08 -0500
committerRay Strode <rstrode@redhat.com>2014-01-10 14:18:07 -0500
commit112b5eb1de405e9db68f8f2771de859fd7b24533 (patch)
treefad04f51da222c58404987b1f7ba1b64039eba9d
parent19fe37f9d36b97e773084627606bc0eed7bbf1ed (diff)
main: clear is_shown state from hide_splash
Right now we clear is_shown after calling hide_splash in a couple of places. It makes more sense to clear this flag in one place, in hide_splash, rather than duplicating code.
-rw-r--r--src/main.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index 91dfe209..8e3c503a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1001,6 +1001,8 @@ quit_splash (state_t *state)
static void
hide_splash (state_t *state)
{
+ state->is_shown = false;
+
if (state->boot_splash == NULL)
return;
@@ -1018,9 +1020,6 @@ dump_details_and_quit_splash (state_t *state)
ply_device_manager_deactivate_renderers (state->device_manager);
hide_splash (state);
-
- state->is_shown = false;
-
quit_splash (state);
}
@@ -1129,8 +1128,6 @@ on_boot_splash_idle (state_t *state)
ply_trace ("hiding splash");
ply_device_manager_deactivate_renderers (state->device_manager);
hide_splash (state);
-
- state->is_shown = false;
}
ply_trace ("quitting splash");