Commit 2ac59a2
committed
fix: dispatch Summary UI updates to UI thread on network change
ClearOnDisconnect() and SetActiveAdapter() modify ObservableCollections
bound to LiveCharts and the process list. They were being called from
the ETW background thread via the PropertyChanged chain, racing with
the DispatcherTimer's FlushPendingTraffic() tick on the UI thread.
This corrupted collection state after toggling adapters (e.g. Ethernet
→ off → WiFi → off → Ethernet), causing the Summary page to go silent.
Fix: post NetworkStatus, ClearOnDisconnect, and SetActiveAdapter to
Dispatcher.UIThread in OnNetworkChanged. Heavy work (ETW, PeriodicWork,
History.ReloadProfiles) stays on the background thread.
fix #1071 parent d94ec56 commit 2ac59a2
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
140 | | - | |
141 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
142 | 146 | | |
143 | 147 | | |
144 | 148 | | |
145 | | - | |
146 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
147 | 155 | | |
148 | 156 | | |
149 | 157 | | |
| |||
0 commit comments