two-step: fix unlock screen

The previous commit introduced a bug where the unlock screen won't
get shown if it's requested within the first 5 seconds of startup.

This commit fixes that by forcing a redraw if the state switches from
NORMAL.
This commit is contained in:
Ray Strode 2013-11-08 08:31:32 -05:00
parent 17976ac538
commit 540ae58fe0

View file

@ -925,7 +925,8 @@ on_draw (view_t *view,
now = ply_get_timestamp ();
if (now - plugin->start_time < plugin->startup_delay)
if ((now - plugin->start_time < plugin->startup_delay) &&
plugin->state == PLY_BOOT_SPLASH_DISPLAY_NORMAL)
return;
if (view->is_blank)