Skip to content

Fix html motd window reloading whenever any other panels are displayed.#1924

Open
bottiger1 wants to merge 1 commit into
ValveSoftware:masterfrom
bottiger1:fix-motd-html-url-reset
Open

Fix html motd window reloading whenever any other panels are displayed.#1924
bottiger1 wants to merge 1 commit into
ValveSoftware:masterfrom
bottiger1:fix-motd-html-url-reset

Conversation

@bottiger1
Copy link
Copy Markdown

@bottiger1 bottiger1 commented May 17, 2026

Description

When you are viewing an HTML motd and if you spawn/die/round end or any situation where new panels are shown, the motd will be forcefully refreshed, causing flashing and anyone that scrolled down or clicked on another link would lose their navigation state.

Why this happens:

When any panel is shown, UpdateAllPanels() is called which then calls Update() on all panels including the motd.

How this is fixed:

We record if the panel is showing html and the url. If upon calling Update() it is html and the same url, we don't redraw it.

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.

1 participant