unifying: notify users to replug when using dfu control (Fixes: #1383)

This commit is contained in:
Mario Limonciello 2019-10-18 16:09:30 -05:00 committed by Richard Hughes
parent 2e06dcd5e3
commit 6c5e7c1e92

View File

@ -638,7 +638,13 @@ fu_unifying_peripheral_detach (FuDevice *device, GError **error)
return FALSE;
}
fu_device_add_flag (device, FWUPD_DEVICE_FLAG_WAIT_FOR_REPLUG);
return TRUE;
g_set_error (error,
FWUPD_ERROR,
FWUPD_ERROR_NEEDS_USER_ACTION,
"%s needs to be manually restarted to complete the update."
"Please unplug and reconnect the device and re-run the update",
fu_device_get_name (device));
return FALSE;
}
/* this can reboot all by itself */