Blame SOURCES/0004-Do-not-show-Unknown-for-every-client-connection.patch

003958
From 002863121ed42f33507ce5663a3b22fabdfa5c36 Mon Sep 17 00:00:00 2001
003958
From: Richard Hughes <richard@hughsie.com>
003958
Date: Thu, 14 Jan 2021 10:03:51 +0000
003958
Subject: [PATCH 04/11] Do not show Unknown [***] for every client connection
003958
003958
Ignore the initial client state change from UNKNOWN to IDLE which was being set
003958
as part of the fix in fb36f22.
003958
003958
Fixes https://github.com/fwupd/fwupd/issues/2766
003958
---
003958
 src/fu-progressbar.c | 6 ++++++
003958
 1 file changed, 6 insertions(+)
003958
003958
diff --git src/fu-progressbar.c src/fu-progressbar.c
003958
index 9a7378c5..5dd9ff39 100644
003958
--- src/fu-progressbar.c
003958
+++ src/fu-progressbar.c
003958
@@ -297,6 +297,12 @@ fu_progressbar_update (FuProgressbar *self, FwupdStatus status, guint percentage
003958
 {
003958
 	g_return_if_fail (FU_IS_PROGRESSBAR (self));
003958
 
003958
+	/* ignore initial client connection */
003958
+	if (self->status == FWUPD_STATUS_UNKNOWN && status == FWUPD_STATUS_IDLE) {
003958
+		self->status = status;
003958
+		return;
003958
+	}
003958
+
003958
 	/* use cached value */
003958
 	if (status == FWUPD_STATUS_UNKNOWN)
003958
 		status = self->status;
003958
-- 
003958
2.29.2
003958