Mandatory information
- NetIP Version: v0.2.0
- Operating System Version: Windows 10
Summary
NetIP doesn’t fully reload an Interface speed/status that changed while NetIP is running. This does not affect Interfaces which are enabled/disabled while NetIP is running (like a VPN).
Steps to reproduce
- Disconnect an Interface (such as a Wifi card), but keep it enabled.
- Launch NetIP, which detect the interface as Down
- Connect the card to a network
- Reload NetIP
Expected result
NetIP should display the updated status and speed of the interface.
Current result
The local IP and background color of the speed does update, but the icon and speed are not updated as they should.
Relevant logs and/or screenshots
Additional context
N/A
Possible fixes
This could be related to incorrect usage of Xaml Bindings to the NetInterface
objects themselves with IValueConverter
, which seems to lead to View updates inconsistencies despite calling OnPropertyChanged(string.Empty)
. A potential solution to test would be to:
- only use direct properties bindings
- convert the values to simple string/int within the ViewModel
- use
DataTrigger
for UI changes (like the background color), aligning with the MVVM principles