examples: Do not re-prompt the finger when repeating verification
Let's assume the user will want to re-scan the same finger rather than being prompted again to change it.
This commit is contained in:
parent
516c1593bb
commit
87dee93633
1 changed files with 5 additions and 2 deletions
|
@ -165,8 +165,11 @@ on_list_completed (FpDevice *dev, GAsyncResult *res, gpointer user_data)
|
|||
static void
|
||||
start_verification (FpDevice *dev, VerifyData *verify_data)
|
||||
{
|
||||
if (verify_data->finger == FP_FINGER_UNKNOWN)
|
||||
{
|
||||
g_print ("Choose the finger to verify:\n");
|
||||
verify_data->finger = finger_chooser ();
|
||||
}
|
||||
|
||||
if (verify_data->finger == FP_FINGER_UNKNOWN)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue