Commit b6c0a4b
Fix unit visibility change not propagating to other views (#264)
`get_visible_unit_ids()` returned a direct reference to the internal
`_visible_unit_ids` list. Callers that snapshot the list before and after
`set_unit_visibility()` to detect changes were comparing the same mutated
object, so the comparison always found no difference and never triggered
`notify_unit_visibility_changed()`.
Return a copy instead so before/after comparisons work correctly.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e1b5e7a commit b6c0a4b
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
600 | 600 | | |
601 | 601 | | |
602 | 602 | | |
603 | | - | |
| 603 | + | |
604 | 604 | | |
605 | 605 | | |
606 | 606 | | |
| |||
0 commit comments