summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index f2232175..f0377848 100644
--- a/src/main.c
+++ b/src/main.c
@@ -192,11 +192,6 @@ static void
on_change_mode (state_t *state,
const char *mode)
{
- if (state->boot_splash == NULL) {
- ply_trace ("no splash set");
- return;
- }
-
ply_trace ("updating mode to '%s'", mode);
if (strcmp (mode, "boot-up") == 0)
state->mode = PLY_BOOT_SPLASH_MODE_BOOT_UP;
@@ -217,6 +212,11 @@ on_change_mode (state_t *state,
prepare_logging (state);
}
+ if (state->boot_splash == NULL) {
+ ply_trace ("no splash set");
+ return;
+ }
+
if (!ply_boot_splash_show (state->boot_splash, state->mode)) {
ply_trace ("failed to update splash");
return;