mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-03 16:44:26 +00:00
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:
parent
eb4dcefbc6
commit
d1015cc2a2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user