Diff between ee51e8a5a5cccae126fddceca9d5797e33991a9d and 3c47042681a2f3b333a9ca47833656ed5d6b3671
Changed Files
| File | Additions | Deletions | Status |
| src/device.c | +3 | -0 | modified |
Full Patch
diff --git a/src/device.c b/src/device.c
index 1a60b96..56b1780 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");