Skip to content

Field close: clear the background image from the scene - #309

Merged
chriskinal merged 1 commit into
developfrom
fix/close-field-clears-imagery
Oct 10, 2026
Merged

chriskinal merged 1 commit into
developfrom
fix/close-field-clears-imagery

Conversation

@chriskinal

Copy link
Copy Markdown
Collaborator

Closing a field with a background picture left the picture on screen.

ClearFieldState called _mapService.ClearBackground(), a no-op since the Avalonia removal, and never nulled State.Field.Imagery. The scene projector kept sending the image rectangle and version, so the web client kept drawing it until the next field open (whose LoadBackgroundImage does null it).

Fix: null State.Field.Imagery on close. Test added beside the flag close test; it fails on develop and passes here.

🤖 Generated with Claude Code

Closing a field called the map service's ClearBackground, which has been a
no-op since the Avalonia removal, and left State.Field.Imagery set. The scene
kept carrying the image rectangle, so the web client went on drawing the
closed field's picture until the next field open nulled it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@chriskinal
chriskinal merged commit 8437575 into develop Oct 10, 2026
4 checks passed
@chriskinal
chriskinal deleted the fix/close-field-clears-imagery branch October 12, 2026 21:47
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.

1 participant