Do not show Unknown [***] for every client connection

Ignore the initial client state change from UNKNOWN to IDLE which was being set
as part of the fix in fb36f22.

Fixes https://github.com/fwupd/fwupd/issues/2766
This commit is contained in:
Richard Hughes 2021-01-14 10:03:51 +00:00
parent eb4dcefbc6
commit d1015cc2a2

View File

@ -297,6 +297,12 @@ fu_progressbar_update (FuProgressbar *self, FwupdStatus status, guint percentage
{
g_return_if_fail (FU_IS_PROGRESSBAR (self));
/* ignore initial client connection */
if (self->status == FWUPD_STATUS_UNKNOWN && status == FWUPD_STATUS_IDLE) {
self->status = status;
return;
}
/* use cached value */
if (status == FWUPD_STATUS_UNKNOWN)
status = self->status;