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

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