Skip to content

fix: let the diff view wake up before its first curtain call#2496

Merged
love-linger merged 1 commit into
sourcegit-scm:developfrom
gadfly3173:fix/diff-blank-on-double-tap-change
Jun 30, 2026
Merged

fix: let the diff view wake up before its first curtain call#2496
love-linger merged 1 commit into
sourcegit-scm:developfrom
gadfly3173:fix/diff-blank-on-double-tap-change

Conversation

@gadfly3173

Copy link
Copy Markdown
Contributor

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.

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.
@love-linger love-linger self-assigned this Jun 30, 2026
@love-linger love-linger merged commit 190b4d9 into sourcegit-scm:develop Jun 30, 2026
14 checks passed
@gadfly3173 gadfly3173 deleted the fix/diff-blank-on-double-tap-change branch June 30, 2026 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants