From b4ee6e30b1196a9ecd6f05d1295faafec233a609 Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Sat, 18 Jan 2025 14:13:42 +0100 Subject: [PATCH] Also compare protocol version to consider device info needs saving --- src/org/kde/kdeconnect/Device.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/kde/kdeconnect/Device.kt b/src/org/kde/kdeconnect/Device.kt index c1c63b21..b9965dd0 100644 --- a/src/org/kde/kdeconnect/Device.kt +++ b/src/org/kde/kdeconnect/Device.kt @@ -361,10 +361,11 @@ class Device : PacketReceiver { fun updateDeviceInfo(newDeviceInfo: DeviceInfo): Boolean { var hasChanges = false - if (deviceInfo.name != newDeviceInfo.name || deviceInfo.type != newDeviceInfo.type) { + if (deviceInfo.name != newDeviceInfo.name || deviceInfo.type != newDeviceInfo.type || deviceInfo.protocolVersion != newDeviceInfo.protocolVersion) { hasChanges = true deviceInfo.name = newDeviceInfo.name deviceInfo.type = newDeviceInfo.type + deviceInfo.protocolVersion = newDeviceInfo.protocolVersion if (isPaired) { deviceInfo.saveInSettings(settings) }