]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Clean up TitleWindowManager.cs (#36327)
authorMyra <vasilis@pikachu.systems>
Tue, 14 Oct 2025 22:13:32 +0000 (00:13 +0200)
committerGitHub <noreply@github.com>
Tue, 14 Oct 2025 22:13:32 +0000 (22:13 +0000)
commit1a5be55c70090a6dcdf86f96304ee592c008afac
treea262df95e5b80ae92d9cab111164cdc16285ad75
parentd81fba01cea3e2cf24e97ce01993a0f53ff30aca
Clean up TitleWindowManager.cs (#36327)

* Clean up TitleWindowManager.cs

- I did not like how `OnHostnameChange()` always needed a string even though that string would always just be the hostname, so now it's just part of its function
- The extra function made to just trigger `OnHostnameChange()` are removed. It just runs the right function off the bat.
- Checking for `ClientRunLevel.InGame` for setting the title without the hostname, which means the previous joined server won't appear for a split second before being corrected by the new cvars being set. Or if the server prefers no host name in the titlebar by the time we connect.

* review

* Sus
Content.Client/Entry/EntryPoint.cs
Content.Client/GameTicking/Managers/TitleWindowManager.cs