Deleted local adapters are not removed from NetworkPopup list

Mandatory information

  • NetIP Version: v0.2.0
  • Operating System Version: Windows 10

Summary

When a local network adapter is deleted (like a disabled WireGuard connection), the NetworkPopup list doesn’t delete it as it should.

Steps to reproduce

  1. Open NetworkPopup
  2. Connect to a VPN like WireGuard
  3. Refresh the NetworkPopup, the WG adapter is added to the popup list
  4. Disconnect the adapter
  5. Refresh the list, the adapter is still in the list, marked as connected

Expected result

The adapter should be removed from the list when it no longer exist.

Current result

The adapter is not removed.

Relevant logs and/or screenshots

N/A

Additional context

N/A

Possible fixes

N/A

Bug validated.

Issue 10 on the repository tracker.

Bug completed & merged into branch develop.

Scheduled for release v0.2.1.