Browse Source

vm(qemu): keep config and registry in sync

osy 2 năm trước cách đây
mục cha
commit
5d316d2edb
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      Platform/VMData.swift

+ 3 - 0
Platform/VMData.swift

@@ -226,6 +226,9 @@ import SwiftUI
         if let registryEntry = registryEntry {
             s.append(registryEntry.objectWillChange.sink { [weak self] in
                 self?.objectWillChange.send()
+                Task { @MainActor in
+                    self?.wrapped?.updateConfigFromRegistry()
+                }
             })
         }
         observers = s