From eb1f363f900e3cac315c6d70faef633791c650cb Mon Sep 17 00:00:00 2001 From: Mona Hmiza <> Date: Thu, 11 May 2023 19:06:20 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=B3=D0=BE=D0=B2?= =?UTF-8?q?=D0=BD=D1=8F=D1=85=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content.Client/UserInterface/Controls/MenuButton.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Content.Client/UserInterface/Controls/MenuButton.cs b/Content.Client/UserInterface/Controls/MenuButton.cs index 56160cced6..416e323156 100644 --- a/Content.Client/UserInterface/Controls/MenuButton.cs +++ b/Content.Client/UserInterface/Controls/MenuButton.cs @@ -95,11 +95,15 @@ public sealed class MenuButton : ContainerButton private void OnKeyBindingChanged(IKeyBinding obj) { + if(string.IsNullOrEmpty(_function.FunctionName)) return; //WD EDIT + _buttonLabel!.Text = BoundKeyHelper.ShortKeyName(_function); } private void OnKeyBindingChanged() { + if(string.IsNullOrEmpty(_function.FunctionName)) return; //WD EDIT + _buttonLabel!.Text = BoundKeyHelper.ShortKeyName(_function); }