2
0
Эх сурвалжийг харах

Show localized bridge network name when available

Schamper 1 сар өмнө
parent
commit
c4fa680099

+ 1 - 1
Platform/Shared/VMConfigNetworkView.swift

@@ -41,7 +41,7 @@ struct VMConfigNetworkView: View {
                             Text("Automatic")
                             Text("Automatic")
                                 .tag(nil as String?)
                                 .tag(nil as String?)
                             ForEach(VZBridgedNetworkInterface.networkInterfaces, id: \.identifier) { interface in
                             ForEach(VZBridgedNetworkInterface.networkInterfaces, id: \.identifier) { interface in
-                                Text(interface.identifier)
+                                Text(interface.localizedDisplayName.map { "\($0) (\(interface.identifier))" } ?? interface.identifier)
                                     .tag(interface.identifier as String?)
                                     .tag(interface.identifier as String?)
                             }
                             }
                         }
                         }

+ 1 - 1
Platform/macOS/VMConfigAppleNetworkingView.swift

@@ -44,7 +44,7 @@ struct VMConfigAppleNetworkingView: View {
                         Text("Automatic")
                         Text("Automatic")
                             .tag(nil as String?)
                             .tag(nil as String?)
                         ForEach(VZBridgedNetworkInterface.networkInterfaces, id: \.identifier) { interface in
                         ForEach(VZBridgedNetworkInterface.networkInterfaces, id: \.identifier) { interface in
-                            Text(interface.identifier)
+                            Text(interface.localizedDisplayName.map { "\($0) (\(interface.identifier))" } ?? interface.identifier)
                                 .tag(interface.identifier as String?)
                                 .tag(interface.identifier as String?)
                         }
                         }
                     }
                     }