Commit 9052d41
fix: Fix interface not displaying in real-time after inserting wired network card
After inserting a wired network card, the managed and interfaceFlag properties initially have values of false and None. When using the NetworkManager::findNetworkInterface method to search, the newly created Device object has not yet assigned values to the interfaceFlag and managed properties, so the system considers the device to be in an unmanaged state and does not display it to the user. The fix involves waiting for the newly created device object's property assignment to complete before proceeding.
Log: Fix interface not responding after inserting network card
PMS: BUG-351709
fix: 修复插入有线网卡后界面没有实时显示
在插入有线网卡后,managed和interfaceFlag属性初始值为false和None,在通过NetworkManager::findNetworkInterface方法来查找时,新生成的Device对象还没有将interfaceFlag和managed属性赋值,所以系统认为该设备是未管理状态,不会显示给用户;修改为等新创建的设备对象属性赋值完成后就可以解决问题
Log: 修复插入网卡后界面无反应1 parent 5c44316 commit 9052d41
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
| 327 | + | |
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
331 | | - | |
| 331 | + | |
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
| |||
0 commit comments