File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Source/NETworkManager/ViewModels Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -945,13 +945,12 @@ private async void ReloadNetworkInterfaces()
945945 if ( SelectedNetworkInterface != null )
946946 id = SelectedNetworkInterface . Id ;
947947
948- NetworkInterfaces = await NetworkInterface . GetNetworkInterfacesAsync ( ) ;
949-
950- // Change interface...
951- SelectedNetworkInterface = string . IsNullOrEmpty ( id )
952- ? NetworkInterfaces . FirstOrDefault ( )
953- : NetworkInterfaces . FirstOrDefault ( x => x . Id == id ) ;
948+ // Load network interfaces...
949+ var networkItems = await Models . Network . NetworkInterface . GetNetworkInterfacesAsync ( ) ;
954950
951+ // Change interface...
952+ SelectedNetworkInterface = string . IsNullOrEmpty ( id ) ? networkItems . FirstOrDefault ( ) : networkItems . FirstOrDefault ( x => x . Id == id ) ;
953+ NetworkInterfaces = networkItems ;
955954 IsNetworkInterfaceLoading = false ;
956955 }
957956
You can’t perform that action at this time.
0 commit comments