Skip to content

Conversation

@CoreyHendrey
Copy link
Contributor

@CoreyHendrey CoreyHendrey commented Nov 22, 2025

Summary

Bugfixes "Various UI problems caused by shared_ptr change"

Purpose of change

This fixes a bunch of issues caused by my shared_ptr change
Fixes #83854
Fixes #83870
Fixes #83873

and reverts the shared_ptr change
Reverts #83856
Reverts #83832

BUT still fixes the UI bouncing in
Fixes #78783

And scrolling:
Fixes #82428

Describe the solution

I've reverted the shared_ptr change as it affected to many parts of the code.
Now it is just a weak_ptr, but when it is locked it optionally passes out the shared_ptr to the calling function.
This allows the calling function to stop the UI being created over and over if its looping over the query()

Describe alternatives you've considered

Testing

Tested ALL issues that have been posted, and tested the bouncing.

Additional context

Chaning to a weak_ptr created a lot of errors.
Changed it back, and instead pass out the shared_ptr
For outer function to control lifetime

Fixes CleverRaven#83854
Fixes CleverRaven#83870
Fixes CleverRaven#83873
Fixes CleverRaven#78783
Reverts CleverRaven#83856
Reverts CleverRaven#83832
@github-actions github-actions bot added Info / User Interface Game - player communication, menus, etc. [C++] Changes (can be) made in C++. Previously named `Code` <Bugfix> This is a fix for a bug (or closes open issue) json-styled JSON lint passed, label assigned by github actions labels Nov 22, 2025
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actions github-actions bot added astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Nov 22, 2025
@EvanBalster
Copy link
Contributor

EvanBalster commented Nov 23, 2025

The poster of #83886 mentions that their uilist error still happens "with the updates from #83877", so there may be a few cases that aren't fixed by this PR.

Retracted by the issue's author.

@Maleclypse Maleclypse merged commit 208a6da into CleverRaven:master Nov 24, 2025
29 checks passed
@CoreyHendrey CoreyHendrey deleted the fix_menu-shared-ptr branch November 24, 2025 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc. json-styled JSON lint passed, label assigned by github actions

Projects

None yet

3 participants