Skip to content

Hotfix: pass last state in SharedUserInterfaceSystem.EnsureClientBui - #6840

Merged
Princess-Cheeseballs merged 3 commits into
space-wizards:masterfrom
whatston3:2026-07-23-the-rest-of-the-open-state
Jul 24, 2026
Merged

Hotfix: pass last state in SharedUserInterfaceSystem.EnsureClientBui#6840
Princess-Cheeseballs merged 3 commits into
space-wizards:masterfrom
whatston3:2026-07-23-the-rest-of-the-open-state

Conversation

@whatston3

Copy link
Copy Markdown
Contributor

Fixes issues described in #6829 (comment)

I goofed. This sends null state when the last available state might not be null!

Proof of the pudding on ss14 master + a few compilation fixes for v284.

just-devouring-rocks.mp4

@deltanedas sorry about that - see video attached, test for yourself

@whatston3
whatston3 requested a review from DrSmugleaf as a code owner July 24, 2026 00:21
Comment on lines +557 to +558
AddQueued(boundUserInterface, QueuedUpdate.Open);
var state = entity.Comp.States.GetValueOrDefault(key);
AddQueued(boundUserInterface, QueuedUpdate.Open, state);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Might want an API like "AddQueuedState" that does the boilerplate automatically and use that in both places where we do this.

@whatston3 whatston3 Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Changes should be applied, and I commented the two AddQueued... methods.

[Tested again, still functional.]

@Princess-Cheeseballs

Copy link
Copy Markdown
Member

I'll test and merge after I'm done doing staging stuff

@Princess-Cheeseballs Princess-Cheeseballs self-assigned this Jul 24, 2026

@Princess-Cheeseballs Princess-Cheeseballs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yummy! More tags released!

@Princess-Cheeseballs
Princess-Cheeseballs merged commit 08b3257 into space-wizards:master Jul 24, 2026
7 checks passed
pull Bot pushed a commit to weaversam8/RobustToolbox that referenced this pull request Aug 4, 2026
…ards#6840) (space-wizards#6900)

* Revert "Hotfix: pass last state in SharedUserInterfaceSystem.EnsureClientBui (space-wizards#6840)"

This reverts commit 08b3257.

* Revert "Bugfix: SharedUserInterfaceSystem stores and applies BUI states in order. (space-wizards#6829)"

This reverts commit c766e79.

* Revert "Defer UI operations until UI system runs frame update (space-wizards#6789)"

This reverts commit f44d7e0.
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