Преглед на файлове

clear compare when new watchface/datafield gets registered

Robert преди 5 месеца
родител
ревизия
4ef4ad9cf4
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      Trio/Sources/Services/WatchManager/GarminManager.swift

+ 4 - 0
Trio/Sources/Services/WatchManager/GarminManager.swift

@@ -708,6 +708,10 @@ final class BaseGarminManager: NSObject, GarminManager, Injectable {
     private func registerDevices(_ devices: [IQDevice]) {
     private func registerDevices(_ devices: [IQDevice]) {
         watchApps.removeAll()
         watchApps.removeAll()
 
 
+        // Reset broadcast hash so newly registered apps receive data
+        // Without this, hash deduplication could skip sending to new apps if data unchanged
+        lastSentDataHash = nil
+
         for device in devices {
         for device in devices {
             connectIQ?.register(forDeviceEvents: device, delegate: self)
             connectIQ?.register(forDeviceEvents: device, delegate: self)