Skip to content

Fix Asset Browser clearing on Asset recompile#27

Closed
trende2001 wants to merge 1 commit intoFacepunch:masterfrom
trende2001:assetbrowser-fix-assetlist
Closed

Fix Asset Browser clearing on Asset recompile#27
trende2001 wants to merge 1 commit intoFacepunch:masterfrom
trende2001:assetbrowser-fix-assetlist

Conversation

@trende2001
Copy link
Copy Markdown
Contributor

@trende2001 trende2001 commented Nov 26, 2025

Removes an unnecessary AssetList.Clear() call in UpdateAssetListAsync.

Resolves #829

@trende2001 trende2001 marked this pull request as draft November 26, 2025 20:46
@trende2001 trende2001 marked this pull request as ready for review November 26, 2025 22:05
@trende2001 trende2001 force-pushed the assetbrowser-fix-assetlist branch 2 times, most recently from 3e8058a to 08da0d5 Compare November 26, 2025 22:23
@garrynewman
Copy link
Copy Markdown
Member

This is an awful lot of undocumented code for something that sounds so simple

@trende2001
Copy link
Copy Markdown
Contributor Author

trende2001 commented Nov 27, 2025

This is an awful lot of undocumented code for something that sounds so simple

This fixed my issue but I can simplify it further of course

@trende2001 trende2001 marked this pull request as draft November 27, 2025 06:55
@trende2001 trende2001 force-pushed the assetbrowser-fix-assetlist branch from 08da0d5 to 4a3750b Compare November 27, 2025 15:40
@trende2001 trende2001 marked this pull request as ready for review November 27, 2025 15:40
@trende2001
Copy link
Copy Markdown
Contributor Author

trende2001 commented Nov 27, 2025

@garrynewman What about now? I've simplified it to 2 methods, just capture the scroll position and restore it, and documented them.

@trende2001 trende2001 changed the title FIx scroll position reset in Asset Browser on Asset recompile Save scroll position Asset Browser on Asset recompile Nov 27, 2025
@trende2001 trende2001 changed the title Save scroll position Asset Browser on Asset recompile Save scroll position in Asset Browser on Asset recompile Nov 27, 2025
@trende2001 trende2001 changed the title Save scroll position in Asset Browser on Asset recompile Fix scrollbar being reset in Asset Browser on Asset recompile Nov 28, 2025
@MonkeyShark
Copy link
Copy Markdown

The problem this fixes is extremely annoying and the code looks pretty good to me.

@trende2001
Copy link
Copy Markdown
Contributor Author

I would like for this to get re-reviewed.

@trende2001 trende2001 force-pushed the assetbrowser-fix-assetlist branch from 18ec120 to 97aa851 Compare December 5, 2025 13:46
@trende2001 trende2001 force-pushed the assetbrowser-fix-assetlist branch 4 times, most recently from 382eec2 to 0dd0ce5 Compare December 18, 2025 18:56
@trende2001 trende2001 force-pushed the assetbrowser-fix-assetlist branch 2 times, most recently from 9002d37 to 00c0ef5 Compare January 13, 2026 10:22
Copilot AI review requested due to automatic review settings January 13, 2026 10:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Copy Markdown
Member

@handsomematt handsomematt left a comment

Choose a reason for hiding this comment

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

Why does the asset browser go to the top after a recompile - we should look at that instead of hacking in a position restore

@trende2001 trende2001 force-pushed the assetbrowser-fix-assetlist branch 2 times, most recently from 1747e09 to faad082 Compare January 20, 2026 14:22
@trende2001 trende2001 changed the title Fix scrollbar being reset in Asset Browser on Asset recompile Fix Asset Browser clearing on Asset recompile Jan 20, 2026
@trende2001 trende2001 force-pushed the assetbrowser-fix-assetlist branch from faad082 to 507c192 Compare January 20, 2026 14:24
@trende2001 trende2001 force-pushed the assetbrowser-fix-assetlist branch from 507c192 to 9c06902 Compare January 20, 2026 17:45
@handsomematt handsomematt added the triaged triaged pull-requests are replicated on the internal sbox repo label Jan 20, 2026
@sboxbot sboxbot added the accepted this pull request was accepted, hurrah! label Jan 21, 2026
@sboxbot
Copy link
Copy Markdown
Contributor

sboxbot commented Jan 21, 2026

This PR has been merged upstream.

@sboxbot sboxbot closed this Jan 21, 2026
@trende2001 trende2001 deleted the assetbrowser-fix-assetlist branch January 21, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accepted this pull request was accepted, hurrah! triaged triaged pull-requests are replicated on the internal sbox repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Asset Browser always returns to the top after saving assets

6 participants