Commit 190b4d9
authored
fix: let the diff view wake up before its first curtain call (#2496)
Double-tapping a change in the Info tab raced against the tab switch:
the view poked the TabControl directly while SelectedChanges was still
clearing DiffContext to null, so the right-hand AvaloniaEdit rendered
blank until a later file switch rebuilt it.
Drive the switch through the ViewModel instead -- set SelectedChanges
first, then ActiveTabIndex, and raise OnPropertyChanged so the existing
DiffContext compensation in the setter reliably fires before the Changes
tab materializes.1 parent bdcf335 commit 190b4d9
2 files changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
532 | 531 | | |
533 | 532 | | |
534 | 533 | | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | 534 | | |
| 535 | + | |
540 | 536 | | |
541 | 537 | | |
542 | 538 | | |
| |||
0 commit comments