From 3c47042681a2f3b333a9ca47833656ed5d6b3671 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 25 Mar 2014 14:05:03 +0200 Subject: [PATCH] core: Fix sending redundant Appearance/Icon signals --- src/device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/device.c b/src/device.c index 1a60b96f1..56b17800c 100644 --- a/src/device.c +++ b/src/device.c @@ -4730,6 +4730,9 @@ void device_set_appearance(struct btd_device *device, uint16_t value) { const char *icon = gap_appearance_to_icon(value); + if (device->appearance == value) + return; + g_dbus_emit_property_changed(dbus_conn, device->path, DEVICE_INTERFACE, "Appearance"); -- 2.47.3