Commit cb5bc9a
Fix Dashboard auto-refresh: async loop, survive tab close, prevent legend duplication
Replace DispatcherTimer with async Task.Delay loop to prevent priority
starvation under heavy UI load. Don't cancel the loop on Unloaded (WPF
fires Unloaded on tab switch/close, not just control destruction). Catch
OperationCanceledException from SQL queries without killing the loop.
Skip auto-refresh ticks while a full refresh is in progress to prevent
concurrent chart rendering that duplicates legends.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent a2c0b93 commit cb5bc9a
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
| 378 | + | |
378 | 379 | | |
379 | 380 | | |
380 | 381 | | |
| |||
384 | 385 | | |
385 | 386 | | |
386 | 387 | | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
387 | 393 | | |
388 | 394 | | |
389 | 395 | | |
| |||
393 | 399 | | |
394 | 400 | | |
395 | 401 | | |
396 | | - | |
| 402 | + | |
397 | 403 | | |
398 | 404 | | |
399 | 405 | | |
400 | 406 | | |
401 | 407 | | |
402 | | - | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
403 | 411 | | |
404 | 412 | | |
405 | 413 | | |
| |||
0 commit comments