Skip to content

Make ChangeCurrentSite an observer#421

Merged
xiyuoh merged 2 commits intomainfrom
xiyu/change_current_site
Dec 2, 2025
Merged

Make ChangeCurrentSite an observer#421
xiyuoh merged 2 commits intomainfrom
xiyu/change_current_site

Conversation

@xiyuoh
Copy link
Member

@xiyuoh xiyuoh commented Dec 1, 2025

Ensure that ChangeCurrentSite events are triggered immediately using observers.

Signed-off-by: Xiyu Oh <xiyu@openrobotics.org>
@mxgrey mxgrey added this to PMC Board Dec 1, 2025
@github-project-automation github-project-automation bot moved this to Inbox in PMC Board Dec 1, 2025
@aaronchongth aaronchongth moved this from Inbox to In Review in PMC Board Dec 2, 2025
Comment on lines -857 to +856
loading_params.change_current_site.write(ChangeCurrentSite {
world.trigger(ChangeCurrentSite {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The let mut loading_params ...] can be removed now

Signed-off-by: Xiyu Oh <xiyu@openrobotics.org>
@xiyuoh xiyuoh merged commit ff5fa9e into main Dec 2, 2025
6 checks passed
@xiyuoh xiyuoh deleted the xiyu/change_current_site branch December 2, 2025 13:49
@github-project-automation github-project-automation bot moved this from In Review to Done in PMC Board Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants