From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Thu, 20 Feb 2025 16:51:01 +0000 (+1100) Subject: Remove storage hotbar GUI bandaid (#35054) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=abb20c0256b933f787069fbc30c82cf8ee9bc8eb;p=space-station-14.git Remove storage hotbar GUI bandaid (#35054) * Remove storage hotbar GUI bandaid With BUI deferred opens it also happened to fix this issue which is nice. * Update Content.Client/Storage/StorageBoundUserInterface.cs --- diff --git a/Content.Client/Storage/StorageBoundUserInterface.cs b/Content.Client/Storage/StorageBoundUserInterface.cs index 16545c3578..8cb415dead 100644 --- a/Content.Client/Storage/StorageBoundUserInterface.cs +++ b/Content.Client/Storage/StorageBoundUserInterface.cs @@ -92,12 +92,5 @@ public sealed class StorageBoundUserInterface : BoundUserInterface Show(); LayoutContainer.SetPosition(_window, position); } - - public void ReOpen() - { - _window?.Orphan(); - _window = null; - Open(); - } } diff --git a/Content.Client/UserInterface/Systems/Storage/StorageUIController.cs b/Content.Client/UserInterface/Systems/Storage/StorageUIController.cs index dbb16ab24a..768a434d83 100644 --- a/Content.Client/UserInterface/Systems/Storage/StorageUIController.cs +++ b/Content.Client/UserInterface/Systems/Storage/StorageUIController.cs @@ -61,39 +61,11 @@ public sealed class StorageUIController : UIController, IOnSystemChanged(); - - foreach (var bui in uiSystem.GetActorUis((_player.LocalEntity.Value, userComp))) - { - if (!uiSystem.TryGetOpenUi(bui.Entity, StorageComponent.StorageUiKey.Key, out var storageBui)) - continue; - - storageBui.ReOpen(); - } - } - private void OnStorageWindowTitle(bool obj) { WindowTitle = obj;