diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; |