]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix character preview not updating on character change (#27043)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Wed, 17 Apr 2024 10:06:10 +0000 (20:06 +1000)
committerGitHub <noreply@github.com>
Wed, 17 Apr 2024 10:06:10 +0000 (20:06 +1000)
I love lobby code :3

Content.Client/Preferences/UI/CharacterSetupGui.xaml.cs

index ea8de09ab5c588fda2566a939631f5e42fd894dc..8dda0220a98e5fda176cc0122e1cfe1cd959912d 100644 (file)
@@ -135,6 +135,9 @@ namespace Content.Client.Preferences.UI
                     _humanoidProfileEditor.CharacterSlot = characterIndexCopy;
                     _humanoidProfileEditor.UpdateControls();
                     _preferencesManager.SelectCharacter(character);
+                    var controller = UserInterfaceManager.GetUIController<LobbyUIController>();
+                    controller.UpdateProfile(_humanoidProfileEditor.Profile);
+                    controller.ReloadCharacterUI();
                     UpdateUI();
                     args.Event.Handle();
                 };