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

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